Which of the following selects every <a> element whose href attribute value contains the given substring?

Kim Thu Đoàn

New member
Which of the following selects every <a> element whose href attribute value contains the given substring?
A. attribute$=value
B. attribute*=value
C. attribute^=value
D. attribute|=value
 
Answer: b
Explanation: attribute*=value selects every <a> element whose href attribute value contains the given substring, attribute$=value selects every <a> element whose href attribute value ends with the given href, attribute^=value selects every <a> element element whose href attribute value begins with “https”.
 

Tìm kiếm

Back
Top