Your First HTML: Divs and Attributes
Lesson 1 of 13
Welcome to web development! Let's start with the most common HTML element: the <div>. Think of it as a simple container or a 'box' for your content.

Every <div> has an opening tag <div> and a closing tag </div>. You can also put divs inside other divs, which is called nesting. To style them or select them with code, we give them attributes like a class or an id.
Code Editor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26