Your First HTML: Divs and Attributes
Lesson 1 of 13Welcome to web development! Let's start with the most common HTML element: the
Every
<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