HTML Tutorial
A complete HTML path from beginner to pro - documents, semantic layout, forms, media, accessibility, SEO basics, and real page projects.
Curriculum
Work through each section in order. Every lesson ends with practice and key points so the idea sticks.
Getting Started
- 1What is HTML?
Learn what HTML is, how it structures web pages, and how it works with CSS and JavaScript.
8 min - 2Anatomy of an HTML Document
Learn the required pieces of a valid HTML page: doctype, html, head, and body.
10 min - 3Headings and Paragraphs
Use heading levels and paragraphs to organize readable page content.
9 min - 4Comments and Whitespace
Learn how HTML comments work and how browsers treat spaces and blank lines.
8 min - 5View Source and DevTools
Inspect real HTML with View Source and browser DevTools so you can learn from live pages.
10 min
Text & Links
- 6Bold, Italic, and Text Formatting
Format text with strong, em, mark, and related inline elements for meaning and emphasis.
9 min - 7Ordered and Unordered Lists
Create bullet lists and numbered lists with ul, ol, and li elements.
9 min - 8Links and Anchors
Connect pages and sections with anchor elements, href values, and link targets.
11 min - 9Images with img
Add images with the img element, including src, alt, width, and height attributes.
10 min - 10Figures and Captions
Group images or media with captions using figure and figcaption.
8 min
Page Structure
- 11Block vs Inline Elements
Understand how block-level and inline elements flow differently on a page.
10 min - 12Semantic HTML Intro
Learn why semantic elements make pages clearer for people, browsers, and assistive tools.
9 min - 13header, nav, and main
Build page landmarks with header, navigation, and main content regions.
10 min - 14section and article
Group thematic content with section and self-contained pieces with article.
10 min - 15aside and footer
Add complementary side content and footers with aside and footer elements.
9 min - 16When to Use div and span
Learn the right role for generic div and span containers after semantic options.
9 min
Forms Basics
- 17Forms Intro
Learn what HTML forms are and how form, input, and submit pieces work together.
10 min - 18Common Input Types
Explore useful input types such as text, email, password, number, checkbox, and radio.
11 min - 19Labels and Buttons
Connect labels to controls correctly and choose the right button types for forms.
10 min - 20Textarea and Select
Collect longer text with textarea and choose options with select and option elements.
10 min - 21Form Attributes (action, method)
Control where form data goes and how it is sent with action, method, and related attributes.
11 min
First Pages
- 22Tables Basics
Present tabular data with table, thead, tbody, tr, th, and td elements.
11 min - 23Meta Charset and Viewport
Set character encoding and mobile viewport so pages render correctly on modern devices.
9 min - 24Mini Project: Profile Page
Build a complete beginner profile page that combines structure, media, links, and a contact form.
15 min - 25Beginner Review
Review the core HTML beginner skills and check that you can build a sound first page.
12 min
Media & Embeds
- 26Audio and Video
Embed audio and video with native HTML controls, multiple sources, captions, and practical playback attributes.
14 min - 27iframes and Embeds
Embed maps, videos, and other documents with iframe, and learn title, sandbox, and loading practices.
13 min - 28picture and srcset
Serve responsive images with srcset, sizes, and the picture element for art direction and format choice.
14 min - 29Inline SVG Basics
Add scalable vector graphics directly in HTML for icons and simple illustrations that stay crisp on any screen.
13 min - 30Favicons and Icons
Add favicons, touch icons, and theme-related icon links so browsers and devices show your site identity clearly.
12 min
Accessible HTML
- 31Accessibility Intro
Learn why accessible HTML matters and the core ideas of perceivable, operable, understandable, and robust content.
12 min - 32Meaningful Alt Text
Write alternative text that communicates image purpose, and know when empty alt is the correct choice.
12 min - 33Landmarks and ARIA Basics
Structure pages with landmark elements and use ARIA only when native HTML is not enough.
14 min - 34Focus and Keyboard Access
Make interactive HTML usable with the keyboard through natural focus order, focusable controls, and skip links.
13 min - 35Accessible Forms
Label controls clearly, associate errors with fields, and group related inputs so forms work with assistive tech.
14 min
Advanced Forms
- 36Validation Attributes
Use required, type, min, max, minlength, maxlength, pattern, and related attributes for built-in form checks.
13 min - 37Fieldset and Legend
Group related form controls with fieldset and legend so radio sets and question groups are clear.
11 min - 38Datalist and Range Inputs
Offer autocomplete suggestions with datalist and collect numeric scales with range inputs.
12 min - 39File Upload Inputs
Build file inputs with accept filters, multiple selection, and clear labels for upload forms.
12 min - 40Practical Form Patterns
Combine labels, fieldsets, validation, and autocomplete into real-world contact and checkout-style forms.
15 min
Document Skills
- 41Document Outline
Build a clear heading hierarchy and section structure so pages are easier to scan and navigate.
12 min - 42Meta Tags and SEO Basics
Write titles, descriptions, language, and essential meta tags that help search and social understanding.
13 min - 43Open Graph Basics
Add Open Graph and Twitter-style meta tags so shared links show the right title, description, and image.
12 min - 44link rel Stylesheets and Preload
Connect CSS and prepare critical assets with link rel stylesheet, preload, and related resource hints.
13 min - 45Script Loading Basics
Understand default script loading versus async and defer so pages stay interactive without blocking rendering.
13 min
Projects
- 46Project: Blog Article Page
Build a complete blog article page with landmarks, headings, media, meta tags, and accessible structure.
18 min - 47Project: Landing Page Structure
Structure a marketing landing page with a focused hero region, feature sections, and an accessible signup form.
18 min - 48Intermediate Review
Review media, accessibility, forms, and document skills from the intermediate HTML path with a practical checklist.
14 min
Modern HTML
- 49The dialog Element
Build accessible modals and lightboxes with the native HTML dialog element, showModal, and form method dialog.
16 min - 50details and summary
Create disclosure widgets, FAQs, and progressive disclosure with native details and summary elements.
14 min - 51template Element Basics
Use the HTML template element to hold inert markup you can clone into the page with JavaScript.
15 min - 52Custom Elements Intro
Learn the basics of custom elements: defining a class, registering a tag, lifecycle callbacks, and attributes.
18 min - 53data-* Attributes
Store custom data on elements with data-* attributes and read them safely from CSS and JavaScript.
14 min
Quality & Standards
- 54Validating HTML
Catch structural mistakes early with validators, doctype rules, and habits that keep markup maintainable.
15 min - 55Progressive Enhancement
Design HTML that works first as content and forms, then layer CSS and JavaScript as enhancements.
16 min - 56Content Security Basics for Markup
Write HTML with fewer XSS and injection risks: safe embedding, careful scripts, and CSP-friendly patterns.
16 min - 57lang, dir, and i18n
Prepare pages for multiple languages with lang, dir, translate hints, and writing-system aware markup.
15 min - 58Print-Friendly Markup
Structure pages so printing and PDF output stay readable: semantics, link clarity, and print CSS hooks.
14 min
Capstones
- 59Capstone: Documentation Site Structure
Plan and mark up a small documentation site with navigation, article layout, code samples, and landmarks.
20 min - 60Capstone: Portfolio Markup
Mark up a personal portfolio with a strong hero region, project list, and contact path using semantic HTML.
18 min - 61Capstone: Checkout Form
Build an accessible multi-section checkout form with labels, autocomplete, validation attributes, and error messaging hooks.
20 min - 62Reusable HTML Patterns
Standardize breadcrumbs, cards-as-interactions, empty states, and other HTML patterns for a consistent design system.
16 min - 63Production HTML Checklist
Use a practical pre-launch checklist for document setup, semantics, forms, media, and resilience.
15 min - 64HTML5 APIs Overview
Connect advanced HTML to browser APIs: canvas, drag and drop, geolocation, storage, and more, from a markup-first view.
17 min - 65Next Steps After HTML
Choose a learning path after advanced HTML: CSS architecture, accessibility depth, JavaScript, frameworks, and content systems.
13 min