HTML
Guides in HTML. Written like documentation — short paragraphs, real examples, interview-relevant depth.
Semantic HTML
beginnerPick elements for meaning, not looks — landmarks, headings, forms, media, and how semantics feed a11y and SEO.
beginner
HTML Document Structure
beginnerSkeleton of a solid HTML document — doctype, html/lang, head metadata, body landmarks, and what belongs where.
beginner
Headings and Document Outline
beginnerUse h1–h6 as a real outline — one logical h1, no level skips for styling, and how headings power AT navigation and SEO.
beginner
Landmark Elements
beginnerheader, nav, main, aside, footer landmarks — how AT users jump sections, labeling multiple navs, and common landmark mistakes.
beginner
Links vs Buttons
beginnerNavigate with links, act with buttons — correct semantics, keyboard behavior, and the SPA footguns that break both.
beginner
Forms, Labels, and Inputs
beginnerWire labels to controls correctly, choose input types, group fields, and avoid the accessibility bugs that fail real users and audits.
beginner
Input Types for Mobile Keyboards
beginnerPick input types and inputmode so mobile keyboards match the data — email, tel, numeric OTP, dates, and the desktop side effects.
beginner
Form Validation Attributes
beginnerNative constraint validation — required, type, pattern, min/max, minlength/maxlength, and wiring :invalid with accessible errors.
beginner
Autocomplete and Name Attributes
intermediatename and autocomplete on form fields — password managers, autofill tokens, and why missing names break real users more than demos.
intermediate
fieldset and legend
beginnerGroup related form controls with fieldset/legend — radio groups, disabled fieldsets, and accessible naming for control sets.
beginner
Tables for Tabular Data
beginnerUse tables for data grids — th/scope, captions, headers, responsive strategies, and when CSS grid is the wrong substitute.
beginner
Images alt and Decorative
beginnerWrite useful alt text, mark decorative images correctly, and avoid SEO/a11y anti-patterns like keyword stuffing or missing alt.
beginner
picture and srcset
intermediateResponsive images in HTML — srcset width descriptors, sizes, art direction with picture/source, and type-based format negotiation.
intermediate
Audio and Video Elements
intermediateNative audio/video — controls, sources, captions, autoplay policies, and accessibility requirements for media on the web.
intermediate
iframe Sandbox and Security
advancedEmbed third-party content safely — sandbox tokens, allow attributes, CSP frame-src, and postMessage boundaries.
advanced
meta Tags for SEO Basics
beginnerEssential meta tags — title, description, robots, canonical, viewport — and what actually moves SEO vs folklore.
beginner
Open Graph Tags
intermediateControl link previews with Open Graph and Twitter card meta — og:title, image, type, absolute URLs, and debugging scrapers.
intermediate
Semantic article section aside
beginnerWhen to use article, section, and aside — standalone content vs thematic grouping vs complementary, with heading pairing.
beginner
time Element and Datetime
beginnerMark up dates and times with time and datetime — machine-readable values, accessible display text, and formatting with Intl.
beginner
details and summary
beginnerNative disclosure widgets with details/summary — open state, styling markers, a11y behavior, and when not to replace accordions with hacks.
beginner
The dialog Element
intermediateNative modal and non-modal dialogs with showModal, light dismiss, focus, and the top layer — without a heavyweight widget library.
intermediate
template Element
intermediateHTML template holds inert DOM clones — stamp client-side fragments, pair with slots/web components, and avoid XSS when filling them.
intermediate
data Attributes
beginnerdata-* attributes for embedding element metadata — dataset API, CSS hooks, validation limits, and when not to store app state in the DOM.
beginner
contenteditable Basics
advancedcontenteditable surfaces — what the browser gives you, sanitization, keyboard and a11y gaps, and when to pick a real editor library.
advanced
Accessibility Tree Overview
intermediateHow browsers build the accessibility tree from DOM and CSS — roles, names, states, what’s pruned, and how to inspect it in DevTools.
intermediate
lang Attribute and i18n HTML
beginnerSet lang and dir for language and direction — nested language spans, hreflang, and what HTML owns vs your i18n framework.
beginner
Base Element and Relative URLs
intermediateHow <base href> rewrites relative URLs for links, scripts, and forms — powerful for static hosts, dangerous when set accidentally.
intermediate
noscript Fallbacks
beginnerUse noscript for honest degraded experiences — messaging, critical CSS alternatives, and what not to expect from modern JS-heavy apps.
beginner
Preload Prefetch in HTML
intermediatelink rel=preload, prefetch, preconnect, and modulepreload — speed critical assets without wrecking bandwidth priorities.
intermediate
Favicon and App Icons
beginnerShip favicons and app icons that work across browsers — SVG/ICO/PNG sizes, apple-touch-icon, manifest icons, and cache gotchas.
beginner
HTML Entities and Encoding
beginnerCharset, Unicode, and entities — when to use & < , escaping user content, and mojibake avoidance.
beginner