Web Development · Revision notes
HTML5 & Semantic Web Architecture
HTML5 gives pages meaning through a strict document skeleton, semantic elements, accessible forms, rich media and built-in browser storage. Good HTML is the foundation that CSS, JavaScript, assistive technology and search engines all build on.
Quick revision
- doctype + html/head/body, charset, viewport
- one main, one h1 per page, headings in order
- semantic > div soup (header, nav, main, article, aside, footer)
- strong/em semantic; b/i stylistic
- target=_blank needs rel=noopener noreferrer
- img: alt, width/height, lazy, srcset; video: controls, captions
- table: caption, thead/tbody, th scope
- label for/id, name required for submission