1 reply [Last post]
gautamz07
gautamz07's picture
Offline
Enthusiast
Last seen: 5 years 10 weeks ago
Timezone: GMT+5.5
Joined: 2014-04-24
Posts: 265
Points: 403

just a small confusion with the below code .

a [class^="icon-"], a [class*=" icon-"]

what does the second line really mean , i understand that the 1st half is say that "if there is any with a class that starts with "icon-" " , select it . So what is the second half really selecting , i must say that the * symbol is a bit confusing .

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 day 3 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

HI gautamz07 It is contains

HI gautamz07
It is contains [*] attribut selector.

See others at Attribute selectors