Writing style property the same way you would in a style sheet. But it needs to be all one line. Separate multiple properties with a semi-colon just as you would in a style sheet. Inline styles are easy and quick to add. You don't need to create a whole new document (as with external style sheets) or edit a new element in the head of your document (as with internal style sheets). You just add the style attribute that is valid on nearly every XHTML element.
Example : background:#fff; color:#000; border: solid #000 1px;
Place that line of styles inside the style attribute of the element
Example : <p style=”background:#fff; color:#000; border: solid #000 1px;”></p>
No comments:
Post a Comment