Using inline styles

To create an inline style, you add the style attribute to the HTML tag using the following syntax:

<tag style="style declarations">

where tag is the name of the tag and style declarations are the styles for this particular tag. The general syntax for the style declaration is:

attribute1:value1; attribute2:value2; . . .

where attribute1 is the name of a particular style attribute and value1 is the value the style applies to that attribute.

Example:

<h3 style="color:green; font-family:sans-serif;
font-size:28pt; text-align:center">
This is a styled H3 heading</h3>

produces the following result

This is a styled H3 heading