Learn Html Free — Tutorials & Practice for Students
Free Html tutorials, examples and coding practice for Indian students. Beginner to advanced, with an in-browser editor and AI feedback — no cost.
TL;DR: Free Html tutorials, examples and coding practice for Indian students. Beginner to advanced, with an in-browser editor and AI feedback — no cost.
Written & reviewed by the Syllab.in Academic Team (CBSE/NCERT subject experts) · Updated
Free Html course: 50 lessons, from the basics through to the advanced topics interviewers actually ask about. Every lesson is free, needs no sign-up, and runs in your browser with an editor and instant AI feedback.
Html Course Syllabus — 50 Lessons
Work through them in order, or jump to the topic you need. 50 lessons include worked explanations and runnable examples.
Getting Started
- Introduction to HTML — HTML (HyperText Markup Language) is the standard language for creating web pages and is the foundation of the web.
- Links & Images — Links (<a>) connect pages together — they are the foundation of the web.
Content Elements
- Lists — HTML has three types of lists: unordered lists (<ul>) show bullet points, ordered lists (<ol>) show numbered items, and description lists (<dl>) show term-definition pairs.
- Tables — Tables organize data in rows and columns.
- HTML Media (Video & Audio) — HTML5 introduced native <video> and <audio> elements — no more Flash plugins needed!
- Ordered & Unordered Lists — Unordered lists (<ul>) show items with bullet points.
- Links & Internal Anchors — Links (<a>) create navigation. href attribute is the destination.
- Images with Alt Text — The alt attribute is mandatory — it describes the image for screen readers and shows when the image fails to load.
- Basic Tables Structure — Tables organize data: <table>, <tr> (row), <th> (header), <td> (cell).
- Tables with colspan & rowspan — colspan merges cells horizontally. rowspan merges cells vertically.
Interactive Elements
- Forms & Inputs — Forms (<form>) collect user input and send it to a server.
- HTML Details & Summary — <details> creates collapsible content. <summary> is the clickable header.
- Progress & Meter Elements — <progress> shows task progress: 0-100%. Attributes: value (current), max (total).
Modern HTML
- Semantic HTML5 — Semantic HTML uses meaningful tag names that describe their purpose: <header>, <nav>, <main>, <section>, <article>, <aside>, <footer>.
- Meta Tags & SEO Basics — Meta tags in the <head> provide information about the page to browsers, search engines, and social media.
- Semantic HTML Structure — Semantic HTML describes meaning: <header>, <nav>, <main>, <section>, <article>, <aside>, <footer>.
- Article, Section & Aside Tags — <article> is self-contained content: blog post, news article, forum post.
HTML Fundamentals
- HTML Attributes In-Depth — Attributes provide extra information about HTML elements.
- Block vs Inline Elements — Block elements start on a new line and take full width: div, p, h1-h6, ul, ol, li, table, form, header, footer.
- Headings & Paragraphs — Headings (h1 to h6) structure content hierarchically.
- Text Formatting Tags — Text formatting tags add meaning and styling: <strong> (important), <em> (emphasis), <mark> (highlighted), <small> (fine print), <code> (programming), <kbd> (keyboard input).
- HTML Special Characters & Entities — HTML entities display special characters: (space), & (&), < (<), > (>), © (©), € (€).
- Divs & Spans: Generic Containers — <div> is a block-level container with no semantic meaning.
HTML & Styling Basics
- HTML Colors & Backgrounds — Colors can be: named (red, royalblue), hex (#3b82f6), RGB (rgb(59,130,246)), RGBA (adds opacity 0–1), or HSL.
HTML Forms
- Advanced Input Types — HTML5 input types provide built-in validation and mobile-friendly keyboards: email, number, date, tel, url, range, color, time, search.
- Forms, Inputs & Submit Buttons — Forms (<form>) collect data. Input elements capture it.
- Advanced Input Types — HTML5 input types provide built-in validation and mobile-friendly keyboards: email, number, date, tel, url, range, color, time, search.
- Select Dropdowns & Textarea — <select> creates dropdown menus with <option> elements.
- Form Validation Attributes — HTML5 validation: required (mandatory), minlength/maxlength, min/max, pattern (regex), email auto-validates, number auto-validates.
HTML Advanced
- localStorage & Web Storage — localStorage stores data permanently in the browser (survives tab close).
- HTML5 Data Attributes — data-* attributes store custom data on elements.
Styling Basics
- Inline Styles & Colors — Inline styles use the style attribute directly on elements: <p style="color: red; font-size: 18px;">.
HTML & CSS Basics
- Classes & IDs for Styling — class attribute: reusable, multiple per element, styled with .classname.
CSS Layout
- CSS Box Model: Margin, Padding, Border — Box model: content (inner), padding (inside border), border (outline), margin (outside).
- CSS Flexbox Layout — Flexbox: display: flex on parent. Children flex automatically.
- CSS Grid Layout — CSS Grid: display: grid creates rows and columns.
CSS Styling
- CSS Typography: Fonts & Text Styling — font-family: serif, sans-serif, monospace.
- Advanced CSS Colors & Gradients — Colors: hex (#RGB, #RRGGBB), rgb(r,g,b), rgba(r,g,b,a), hsl(h,s,l).
CSS Interactivity
- CSS Hover Effects & Transitions — :hover pseudo-class triggers on mouse over.
Responsive Design
- CSS Media Queries for Responsive Design — Media queries adjust styles for different screen sizes: @media (max-width: 768px) { }.
Media Elements
- HTML5 Audio & Video — <audio> and <video> elements play media natively without plugins.
- iFrames & Embedded Content — <iframe> embeds external content: YouTube, Google Maps, other websites.
HTML Head & SEO
- Meta Tags & SEO Optimization — Meta tags provide metadata: charset (UTF-8), viewport (mobile responsive), description (Google snippet), keywords, Open Graph (social).
CSS Advanced
- CSS Keyframe Animations — @keyframes defines animation steps. animation property applies it: animation: name duration timing-function repeat.
- CSS Custom Properties (Variables) — CSS variables: --name: value; Access with var(--name).
- CSS Pseudo-classes & Pseudo-elements — Pseudo-classes: :hover, :active, :focus, :visited, :nth-child, :first-child, :last-child, :empty.
Projects
- Project: Build a Profile Card — Profile cards combine HTML, CSS, and layout skills.
- Project: Pricing Table — Pricing tables compare plans side-by-side.
- Project: Landing Page — Landing pages convert visitors: strong headline, hero image, clear value proposition, CTA buttons, testimonials, footer.
Intermediate
- Local Storage and Session Storage — localStorage stores data persistently in the browser (survives refresh/close).
Who this Html course is for
School and college students in India starting from zero, and anyone revising Html for placements, board practicals or a project. There is no prerequisite beyond being able to type — the first lessons assume no programming background at all.
How to study this course
- Read the lesson, then run the example in the built-in editor before moving on — reading code is not the same as writing it.
- Try the practice task at the end of each lesson. Getting it wrong and fixing it is where the learning happens.
- When you are stuck, ask the free AI Tutor to explain that specific line rather than skipping ahead.
🤖 Stuck on any of these? Ask Syllab's free AI Tutor to explain step by step →