ID selector

Starts with # and selects the one element with that id.

What is an ID selector?

An ID selector starts with # and picks the one element with that id. It is very specific, so it is hard to override later.

#site-header { height: 64px; }
/* <header id="site-header"> */

Level: Novice · More CSS terms at this level

Updated