Collected by Elizabeth Janson Home Page |
|
CommentsTextual comments in CSS style sheets are similar to those in the C programming language, and use /* secret message */ .For example EM { color: red } /* red, really red!! */ SelectorsThe selector is the link between the HTML document and the style sheet. Style sheet selectors are the code that preceeds the curly bracketed definitions.There are five different kinds of selectors that you can use to add style to your web pages.
Universal selectorNote that because of inheritance, discussed later on, and the fact that most browsers do not support the universal selector, you should rarely, if ever, use it, despite these notes from W3C. The universal selector, written "*", represents the qualified name of any element type. It represents then any single element in the document tree in any namespace (including those without any declared namespace) if no default namespace has been specified. If a default namespace has been specified, see below Universal selector and Namespaces. If the universal selector is not the only component of a sequence of simple selectors, the * may be omitted. For example:
*[lang=fr] and [lang=fr] are equivalent, Warning : it is recommended that the *, representing the universal selector, not be omitted.
|
Email
CSS begins here |
|
This page is part of Elizabeth Janson's web site
http://www.oocities.org/elizatk/index.html
Tetbury residents in the Eighteenth Century my Australian Family History and Barrie, our Family Poet. |