Level 1 of 15

Type Selector

Select elements by their type

A

Selects all elements of type A. Type refers to the type of tag, so div, p and ul are all different element types.

Examples

div selects all div elements.
p selects all p elements.

Select the birds

CSS Editor
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
HTML viewer
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<bird class="skywalker"></bird>
<bird class="skywalker"></bird>
<bird class="skywalker"></bird>