Attribute Selectors

[target]: all elements with a target attribute
[target=_blank]: all elements with target="_blank"
[title~=car]: all elements with a title containing "car" as one of the space-separated values.
[lang|=en]: all elements with lang starting with the term "en" in a hyphen-separated list, ie. matches 'en' and 'en-gb' but not 'eng'.
a[href^="https"]: all <a> with href starting with"https"
a[href$=".html"]: all <a> with href ending with ".html"
a[href*="world"]: all <a> with href containing "world"
p:lang(ms): all <p> elements with lang starting with"ms"
p:id(meta): all <p> elements with id starting with "meta"