Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Well done!
You have completed CSS Selectors Quickstart !
You have completed CSS Selectors Quickstart !
Instruction
ID Selectors
An ID selector matches an HTML element based on the value of its id attribute. ID selectors are declared using the pound (#) symbol. For example, if an element has an id attribute with the value main-content:
<div id="main-content">...</div>
you can target that element with CSS, like this:
#main-content {
border: 2px dotted tomato;
}
IDs Should be Unique
ID selectors instru...