tags selector html code example
Example 1: html select list
<label for="cars">Choose a car:</label>
<select id="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
Example 2: what is a css selector
h1 {
color: red;
}
In this CSS code example that sets the color of all h1s to red
the "h1" is the selctor because we are applying this style to
the h1s.