QUESTION IMAGE
Question
what code would you use to style this instance, knowing it appears only once on the page a.) .salon { text - decoration: line - through; } the above code is added to the internal stylesheet of the webpage. b.) salon { text - decoration: line - through; } the above code is added to the internal stylesheet of the webpage. c.) #.salon { text - decoration: line - through; } the above code is added to the internal stylesheet of the webpage. d.) #salon { text - decoration: line - through; }
In CSS, an ID selector is used to style a single, unique element on a page. ID selectors are preceded by a '#'. Option d uses a proper ID selector '#salon' to target the unique instance. Option a uses a class selector (preceded by a '.'), which can be applied to multiple elements. Option b is missing the '.' for a class or '#' for an ID. Option c has an incorrect combination of '#' and '.'.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
D. #salon { text - decoration: line - through; }