Wednesday, September 9, 2015

HTML styling

If you want to change the  default  style of html you can use the   style element.

COLORS:

use background-color: attribute in changing your background color.

<body style="background-color:black"> you can choose any color that you want as long as html accepts it.

If your confuse of what color to use you can use hexa color combination.
like
<body style="background-color:#b4eeb4">
refer to this link below for more hexa colors.

==>CLICK HERE TO KNOW MORE HEXA COLOR COMBINATION

use  color: attribute in changing text color.

<p style="color:blue"> same with background color you can also use hexa
<p style="color:#b4eeb4">


FONTS:

use font-family: attribute in changing your font style
Note: This is not allowed in html5 anymore you can only use this tag in the lower version of html. so it is recommended to use css for this.

<h1 style="font-family:verdana">
<p style="font-family:courier">


use font-size: attribute used to resize your fonts.
<h1 style="font-size:300%">



ALIGNMENTS:

use  text-align: attribute in aligning your texts.

<h1 style="text-align:center">
<h1 style="text-align:left">
<h1 style="text-align:right">


0 comments:

Post a Comment