Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


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

Chapter 2. CSS Basics > Applying Attribute Selectors

2.6. Applying Attribute Selectors

2.6.1. Problem

You want to use style elements based on preexisting attributes of HTML elements, rather than adding an additional class attribute.

2.6.2. Solution

CSS2 attribute selectors have the following four main options for finding an element:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint