Quote:
Originally Posted by Bri
You don't use semi-colons in the actual website html or the external style sheet?
|
Semi-colons are used in CSS to separate properties, but aren't part of HTML.
HTML syntax:
Code:
<element attribute="value" attribute="value"> </element>
CSS syntax:
Code:
selector { property: value; property: value; }
Inline syntax:
Code:
<element style="property: value; property: value;" attribute="value"> </element>
Note: Those are fake names, for example purposes.
Note: You can always omit the last semi-colon in a CSS section.