QUESTION IMAGE
Question
question tutorial
which 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;
}
the above code is added to the internal stylesheet of the webpage.
In CSS, an ID selector is used when an element appears only once on a page. ID selectors start with a '#'. Option d uses the correct syntax for an ID selector to style an element with the ID "salon" to have a line - through text - decoration. Option a uses a class selector (starts with a '.'), option b is missing the dot for a class selector, and option c has an incorrect combination of a hash and a dot for an ID selector.
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; }