HTML Structure 101 7 Lessons
Before you can style a page, you need to build one. This series covers the seven structural concepts every HTML author needs to know โ from the required document skeleton down to the building blocks you'll use for every layout you ever create.
Each lesson has a concept explanation, one or more code examples, and a short CodePen exercise. Work through them in order, then submit your CodePen links to the Canvas assignment.
The 7 Lessons
Lesson 1: The HTML Skeleton
Every web page starts with the same bones. Learn the required document structure that browsers expect.
Lesson 2: Nesting & Hierarchy
HTML elements live inside other elements. Learn how parent-child relationships shape the DOM.
Lesson 3: Annotating Your Code
HTML comments let you leave notes in your source code that browsers ignore.
Lesson 4: Tagging Your Content
Attributes add meaning and behavior to elements โ from links to images to accessibility labels.
Lesson 5: Addressing Your Elements
Classes and IDs give your elements names โ so CSS and links can find them precisely.
Lesson 6: Styling from the Inside Out
The style attribute lets you apply CSS directly to a single element โ no stylesheet needed.
Lesson 7: Building Blocks
The div element is a generic container with no meaning of its own โ until you give it one.