QUESTION IMAGE
Question
in css, how would you select this heading by its id? <h1 id=\title\>fluffy cats</h1> choose 1 answer: a .title { } b title { } c h1 { } d #title { }
Brief Explanations
In CSS, an ID selector is preceded by a hash symbol (#). Option A is a class selector (preceded by a dot), option B is just a simple element - like selector without any special prefix for ID, and option C selects all h1 elements. Only option D uses the correct syntax for selecting an element by its ID.
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. #title { }