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

Attribute Selectors

There are four attribute selectors introduced under CSS2, which are designed to match the defined attributes in the Web document. Here are quick descriptions for their use and purpose:

  • [attribute] - Matches the name of the attribute contained within square brackets.

  • [attribute=value] - A match is made when the attribute equals the value of "value".

  • [attribute~=value] - A match is made when the attribute roughly matches the value of "value", in cases where the text "value" may be part of a larger word.

  • [attribute|=value] - A match is made whenever the attribute matches the first few letters of a value whose first few letters match the text "value".


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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