Problem Statement
How do you select an element with ID 'main'?
Explanation
An ID selector starts with a hash symbol. '#main' selects the element whose id attribute is set to 'main'. Each ID must be unique on a web page.
Code Solution
SolutionRead Only
#main { background-color: lightgray; }Practice Sets
This question appears in the following practice sets:
