Which of the following selector selects all paragraph elements with a lang attribute?
A. p[lang]
B. p[lang="fr"]
C. p[lang~="fr"]
D. p[lang|="fr"]
Answer: Option A
Related Questions on Basic CSS
A. Color Style Sheets
B. Cascade Sheets Style
C. Cascade Style Sheet
D. Cascading Style Sheets
Which of the following attributes is used to specify elements to bind style rules to?
A. id
B. class
C. tag
D. all of the mentioned
Join The Discussion