Advanced HTML for Good Developers
summary
HTML semantics cut page weight and assistive-tech confusion: only ~140 HTML elements exist (fewer when excluding deprecated) and most teams use under 20 common elements daily, so choosing the right tag yields better DOM and accessibility trees. Lighthouse warns of deep DOMs — max depth 32 and no parent with >60 children — and misuse like clickable divs breaks keyboard, focus and ARIA behavior compared with a button element. Use native features: loading="lazy" for offscreen images, fetchpriority and link preconnect/DNS-prefetch to improve LCP and perceived load times.
AI-written summary · about
chapters (22)
- 0:00Introduction and speaker intro
- 1:11HTML's simplicity and value
- 2:56HTML for accessibility and performance
- 3:59TypeScript analogy for HTML semantics
- 6:04Choosing semantic HTML elements
- 7:50Accessibility tree and screen readers
- 12:27Performance impact of excessive DOM nodes
- 15:18Using semantic elements for performance
- 16:20Basic semantic HTML practices
- 17:26Proper heading hierarchy
- 18:30Content vs design in HTML structure
- 20:38Context matters in form inputs
- 21:20Native vs custom date inputs
- 23:52Leveraging native HTML functionality
- 24:36Links vs buttons in HTML
- 28:29HTML attributes and accessibility
- 30:55Useful HTML attributes for validation
- 33:04HTML attributes for performance
- 33:47Lazy loading images
- 36:13Fetch priority for resources
- 38:21Resource hints for faster loading
- 40:27Summary and call to action
