View Single Post
Old 11-06-2012, 05:34 PM   PM User | #6
Custard7A
Regular Coder

 
Custard7A's Avatar
 
Join Date: Jul 2010
Location: Australia
Posts: 269
Thanks: 32
Thanked 32 Times in 32 Posts
Custard7A is an unknown quantity at this point
Quote:
Originally Posted by Bri View Post
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.
Custard7A is offline   Reply With Quote