LESSON 01 • THE BUILDING BLOCKS

Anatomy of HTML5 Tags

HTML (HyperText Markup Language) gives structure to every webpage on the Internet using tags.

🏷️ What is an HTML Tag & Element?

An HTML element starts with an Opening Tag, contains content inside, and finishes with a Closing Tag.

<h1 class="title">Opening Tag + Attribute
Hello World!Element Content
</h1>Closing Tag

📄 Standard Document Boilerplate

  • <!DOCTYPE html> - Tells browser this is modern HTML5
  • <html> - Root element wrapping all web code
  • <head> - Metadata, title, fonts & styles (invisible)
  • <body> - All visible elements rendered on screen
⚡ Live HTML Editor & Real-Time Preview
HTML CODE:
LIVE VISUAL PREVIEW:
LESSON 02 • TEXT & TYPOGRAPHY

Headings & Text Formatting

Structure your text hierarchy using headings <h1> to <h6> and add inline text emphasis.

✍️ Essential Text Tags

TagPurpose
<h1> - <h6>Headings (1 is largest/most important)
<p>Standard paragraph text block
<strong>Bold text (high importance)
<em>Italic text (emphasis)
<mark>Highlighted text background
<code>Inline monospace code snippet
<blockquote>Indented quote block
<br> / <hr>Line break / Horizontal rule divider
⚡ Live HTML Editor & Real-Time Preview
HTML CODE:
LIVE VISUAL PREVIEW:
LESSON 03 • LISTS & DATA

Lists & Structured Content

Organize content into bulleted, numbered, or definition lists.

📋 3 Types of HTML Lists

1. Unordered List <ul>

Bullet points for items where order doesn't matter (e.g. Shopping List).

<ul> <li>Item</li> </ul>

2. Ordered List <ol>

Numbered sequence for step-by-step instructions (e.g. Recipes).

<ol> <li>Step 1</li> </ol>

3. Description List <dl>

Terms <dt> paired with definitions <dd> (e.g. Glossaries).

<dl> <dt>Term</dt> <dd>Def</dd> </dl>
⚡ Live HTML Editor & Real-Time Preview
HTML CODE:
LIVE VISUAL PREVIEW:
LESSON 04 • HYPERLINKS & ANCHORS

Links & Web Navigation

The anchor tag <a href="..."> turns text or images into clickable links across the Web.

🔗 Anchor Attributes (`href` & `target`)

href="https://..."
Destination URL: The web address or file path the link leads to.
target="_blank"
New Tab: Opens the external link in a brand-new browser tab!
href="mailto:user@site.com"
Email Link: Launches the default desktop email app automatically.
href="#section-id"
Internal Anchor: Smoothly scrolls down to an element with `id="section-id"`.
⚡ Live HTML Editor & Real-Time Preview
HTML CODE:
LIVE VISUAL PREVIEW:
LESSON 05 • MEDIA & ASSETS

Images, Audio & Video

Embed rich multimedia content natively using HTML5 tags without third-party plugins.

🖼️ Image & Media Elements

<img src="pic.jpg" alt="Description">

Self-closing tag. The `alt` attribute is crucial for screen-readers & SEO!

<audio controls src="audio.mp3">

Renders a native audio player with play/pause and volume controls.

<video controls width="100%" poster="thumb.png">

Renders a video player supporting HTML5 MP4/WebM files.

⚡ Live HTML Editor & Real-Time Preview
HTML CODE:
LIVE VISUAL PREVIEW:
LESSON 06 • STRUCTURE & ACCESSIBILITY

HTML5 Semantic Layout

Semantic elements describe their meaning to both the browser and developer, replacing generic <div> soup!

🏗️ Semantic Page Layout Tags

<header> Logo & Banner
<nav> Navigation Links
<main> Primary Content
<section> & <article>
<aside> Sidebar
⚡ Live HTML Editor & Real-Time Preview
HTML CODE:
LIVE VISUAL PREVIEW:
LESSON 07 • USER INPUT

Forms, Inputs & Labels

HTML forms collect data from users using specialized input controls.

📝 Essential Form Controls

<form action="..." method="POST"> Form container
<label for="user-id"> Connects label text to input ID
<input type="text|email|password"> Text entry fields
<input type="checkbox|radio"> Selection controls
<input type="range|color|date"> HTML5 interactive pickers
<select> <option> Dropdown select menu
<button type="submit"> Form submit button
⚡ Live HTML Editor & Real-Time Preview
HTML CODE:
LIVE VISUAL PREVIEW:
LESSON 08 • TABULAR DATA

HTML Tables & Data Grids

Format grid-based tabular data cleanly using semantic table tags.

📊 Table Tags & Attributes

Tag / AttributeDescription
<table>Main table container element
<thead> / <tbody>Table Header vs Table Body sections
<tr>Table Row (contains cells)
<th>Header cell (bold, centered by default)
<td>Standard Data cell
colspan="2"Spans cell across multiple columns
rowspan="2"Spans cell across multiple rows
⚡ Live HTML Editor & Real-Time Preview
HTML CODE:
LIVE VISUAL PREVIEW: