Inline CSS
Web page designers have moved to separating out all stylistic coding like setting font attributes and page colors from the structural coding of web page elements. Because of this, attributes are frequently used to stylize elements of a page. For example, code such as the following which would produce the text below it,
<h1>Yo</h1>
Yo
can be altered with the following attribute changes:
<h1 style="font-family:Georgia; font-size:200%;color:blue;">Yo</h1>
to produce:
<h1>Yo</h1>
Yo
can be altered with the following attribute changes:
<h1 style="font-family:Georgia; font-size:200%;color:blue;">Yo</h1>
to produce:
In general, the format for including attributes within a tag is:
style="name-subname: value;"
If you have multiple names, they would be separated within the quotes by a semi-colon:
style="name-subname: value; name-subname: value; name-subname: value"
style="name-subname: value;"
If you have multiple names, they would be separated within the quotes by a semi-colon:
style="name-subname: value; name-subname: value; name-subname: value"