|
Sections: Introduction | Section 1 | Section 2 | Section 3 |
Section Two: Part A | Part B | Part C | Part D | Part E | Part F | Part G | Part H | Part I |
Introduction to Class Selectors As you learned CSS Type Selector rules are CSS rules that are applied to a specific HTML tag in your web page. While Type Selectors are very beneficial, especially if the formatting you want to apply to your web page can be applied to every unique use of an HTML tag. For instance, if you want to ensure uniformity of your <h1></h1> heading tags, you can create a CSS Type Selector rule that applies to every unique use of the <h1> tag. On the flip side, the fact that a Type Selector rule is applied to every unique instance of a tag can cause issues in regard to your formatting plans. Sometimes, you may want freedom to apply CSS rules to text regardless of what HTML tag is applied to the text. Class Selectors can help in these instances. |
© 2008 KCDL. All rights reserved. |