May 2017
Intermediate to advanced
448 pages
10h 10m
English
Attribute selectors are a particularly helpful subset of CSS selectors. They allow us to specify an element by one of its HTML attributes, such as a link's title attribute or an image's alt attribute. For example, to select all images that have an alt attribute, we write the following:
$('img[alt]')
Read now
Unlock full access