Element Selectors
Element selectors (also called type selectors) target HTML elements by their tag name.
Basic Element Selectors
Loading Selector Playground...
Try these element selectors:
h1- selects all h1 elementsp- selects all paragraphsa- selects all linksarticle- selects the article container
Styling with Element Selectors
Loading CSS Playground...
Universal Selector (*)
The * selector matches all elements:
Loading Selector Playground...
Exercise: Select Headings
Select all h2 elements in the HTML:
Loading CSS Exercise...
Up next · Lesson 3 of 27
Class Selectors
1 min read
2 of 27 lessons done

Ask Byte about this lesson
A private chat about this lesson. Byte has read the whole lesson, answers in seconds, and shows the section each answer comes from. Ask follow-ups in any language.
Questions & Answers
Public questions about this lesson. The AI Tutor answers right away in your language, the FreeAcademy team checks answers, and every learner can read them.

