If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

CSS: The element selector

The element selector is a way to select all the elements with a given tag name in a document, and apply the same styles to each element with the tag name.
Note that you should only write the tag name, and not write brackets around the tag name — h1, not <h1>.

Want to join the conversation?

No posts yet.