HTML & CSS
Start from a blank page and learn to build real, accessible web pages by hand: the elements that give a document meaning, the box model and cascade that decide how it looks, flexbox and grid for real layouts, and the responsive, polished detail that separates a page that works from one that reads as finished.
Start with What Is HTML and CSS?Part 1 · HTML Foundations
7 lessons · 54 minThe elements that give a document structure and meaning, before any styling exists.
- What Is HTML and CSS?7 minThree technologies behind every web page — what HTML, CSS and JavaScript do, how a browser turns a document into what you see, and why separating structure from presentation matters.
- Document Structure and Boilerplate7 minThe handful of lines every HTML page starts with — doctype, lang, head metadata and body — and why each one exists, plus comments, void elements and whitespace collapsing.
- Text, Headings and Lists8 minThe elements that carry almost all written content — headings, paragraphs, emphasis, line breaks, and ordered, unordered and description lists.
- Links and Navigation8 minThe anchor element — relative and absolute paths, linking within a page, opening links safely in a new tab, and mailto and tel links.
- Images and Media8 minThe img element and why alt text is never optional, width and height as a layout-shift fix rather than a sizing tool, figure and figcaption, and embedding audio and video.
- Semantic HTML9 minheader, nav, main, article, section, aside and footer — the elements that expose real landmark roles to assistive technology, and when div and span are still the right choice.
- Tables7 minMarking up real tabular data correctly with table, thead, tbody, th and scope — and why using tables for page layout is a historical anti-pattern to avoid.
Part 2 · Forms and Accessibility
3 lessons · 27 minCollecting input from a visitor, and building pages that work for everyone who visits.
- Forms and Inputs9 minform, label, input types, select, textarea and button — how to collect input correctly, associate labels with controls, and avoid the common button-type gotcha.
- Form Validation8 minBuilt-in HTML validation — required, pattern, min/max, length limits — styling with :valid/:invalid, grouping with fieldset, and why client-side validation is UX, not security.
- Accessibility Fundamentals10 minTying together semantic HTML, alt text and labels with new ground — WCAG contrast ratios, visible focus states, tabindex, skip links, and why no ARIA is better than bad ARIA.
Part 3 · CSS Foundations
6 lessons · 48 minSelectors, the cascade, and the box model — the rules that decide how anything looks.
- Introducing CSS6 minThe three ways to attach CSS to a page — inline styles, a style block, and an external stylesheet — and the basic rule syntax every stylesheet is built from.
- Selectors and Specificity9 minType, class, ID, attribute and combinator selectors, plus pseudo-classes and pseudo-elements, and the real rule for which of two conflicting rules wins.
- The Cascade and Inheritance8 minHow equal-specificity rules resolve by source order, which properties inherit down the document by default and which don't, and the inherit, initial and unset keywords.
- The Box Model9 minContent, padding, border and margin as nested boxes, the real difference between content-box and border-box sizing, and how vertical margins collapse between block elements.
- Display and Visibility8 minThe core display values — block, inline, inline-block and none — and the real three-way distinction between display:none, visibility:hidden and opacity:0 for hiding an element.
- Units and Sizing8 minpx, em, rem, percentages and viewport units, what each is relative to, the em compounding gotcha, why rem is the common default, and why unitless line-height usually wins.
Part 4 · Layout
5 lessons · 44 minFlexbox and grid, and the positioning rules that sit underneath both.
- Flexbox Fundamentals9 mindisplay flex and the main axis — flex-direction, justify-content, align-items, flex-wrap, and the flex-grow/shrink/basis shorthand that makes items share space.
- Flexbox in Practice9 minReal flexbox patterns — a navbar with space-between, equal-height cards via stretch, centering with justify-content/align-items, gap instead of margin hacks, order, and align-self.
- CSS Grid Fundamentals9 mindisplay grid, grid-template-columns/rows with the fr unit, gap, naming regions with grid-template-areas/grid-area, and placing items by line number with grid-column/grid-row.
- CSS Grid in Practice9 minA full-page header/sidebar/main/footer layout with grid-template-areas, a responsive card grid using repeat(auto-fit, minmax()), and when to reach for grid versus flexbox.
- Positioning8 minstatic, relative, absolute, fixed and sticky positioning, what each is relative to, the nearest positioned ancestor rule for absolute, the sticky/overflow gotcha, and z-index.
Part 5 · Responsive Design
3 lessons · 26 minBuilding one page that genuinely works from a phone to a widescreen monitor.
- Responsive Design and Media Queries9 minWhat "responsive" means as a design goal, @media query syntax, min-width versus max-width breakpoints, and why the viewport meta tag must be present for any of it to work on a phone.
- Responsive Images9 minsrcset and sizes for letting the browser pick the right resolution, <picture> for art direction, object-fit/object-position for fixed-size containers, and the loading="lazy" attribute.
- Mobile-First Design8 minWriting base CSS for the smallest screen and layering on complexity with min-width queries, why that's simpler than desktop-first, and touch-target/hover-state realities for phones.
Part 6 · Typography and Visual Design
6 lessons · 49 minColour, type, motion and polish — the difference between working and finished.
- Colors and Backgrounds8 minThe color formats CSS understands — keyword, hex, rgb() and hsl() — background-image with linear-gradient, controlling size/position/repeat, and the currentColor keyword.
- Typography9 minFont stacks and the five generic fallback families, loading a web font, font-weight/style/line-height, text-align/letter-spacing/text-transform, and the zero-download system font stack.
- CSS Custom Properties (Variables)8 minDeclaring --custom properties on :root, reading them with var(--name, fallback), the one-line theme-change use case, and how they inherit and can be overridden per scope.
- Shadows, Borders and Gradients8 minborder-radius including elliptical corners and pill/circle shortcuts, box-shadow syntax with inset and stacked shadows, radial-gradient(), and text-shadow.
- Transitions and Animations9 minThe transition shorthand and why not every property can meaningfully transition, @keyframes and the animation shorthand for multi-step motion, and respecting prefers-reduced-motion.
- Transforms7 mintranslate(), scale(), rotate() and skew(), combining multiple functions in one declaration, transform-origin, and why transform/opacity are best for smooth animation.
Part 7 · Real-World Craft
2 lessons · 18 minThe tools and habits that turn writing HTML and CSS into a repeatable practice.
- Browser DevTools8 minOpening your browser's devtools — editing the DOM in Elements, reading the Styles pane and cascade, the box model diagram, the Computed tab, and the responsive device toolbar.
- Debugging Common Layout Bugs10 minA checklist of common CSS layout bugs — margin collapsing, flex/grid overflow, whitespace gaps, dead z-index, clipped shadows, and box-sizing mismatches — and how to fix them.
Prove it: HTML & CSS Certification
This course teaches the whole exam syllabus, free. The exam itself is 140 minutes under a clock, 60 questions, ₹199$9.99 — and a certificate with a link anyone can check if you pass.
See the exam