• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 4. CSS Selectors > Type Selectors

Type Selectors

The simplest kind of selector in CSS is the name of an element type. Using this kind of selector, which is called a type selector, you apply the declaration to every instance of the element type. For example, the selector of the following simple rule is H1, so the rule affects all H1 elements in a document:

H1 { color: red }


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint