To create an inline style, you add the style attribute to the HTML tag using the following syntax:
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:
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