The Css Basic Syntax
- Selector
Selector is simply the element that linked to a particular style.Example:
P is the selector in P { text-indent: 3em }
- Grouping
To decrease the repeting statement,using grouping is allowed.All of the heading in the document can be given identical declarations by a grouping.Example:
H1, H2, H3, H4, H5, H6 {
color: red;
font-family: sans-serif }
- Comments
Comments are donoted with style sheets with the same conventions that are used in C programming.Example of comment:
/* Comment */
References:
CSS Structure and Rules
No comments:
Post a Comment