Ten things I didn't know about HTML
summary
Browsers parse legacy color strings per the HTML5 spec so weird inputs like names or omitted # yield deterministic hex colors; semicolons in entities are sometimes optional but can change parsing in attributes; html and head end tags are optional and the browser will auto‑create them; an entirely empty response can still render styled content via the Link header plus CSS content on a pseudo element; JavaScript strings use surrogate pairs so length can be >1 for a single symbol; document.all is intentionally falsy; use benchmark.js and jsperf for robust timing and cross‑browser comparison.
AI-written summary · about
chapters (17)
- 0:00Start
- 1:16Background colors
- 6:09DTD fail
- 7:15Take-away
- 9:41Character references
- 11:49Valid HTML
- 15:06CSS
- 16:45Attribute values
- 18:03JavaScript string length
- 18:18String length char count
- 18:45Surrogate pairs
- 19:02JS string character count
- 19:42Which is invalid?
- 20:40JS variable names
- 21:49"All objects are truthy" except in the DOM...
- 22:13But... Why?
- 25:12Benchmark.js
related talks
35m10 Things I Didn't Know About HTML
41m3.14 things I didn't know about CSS
19mHTML can do that?
46m3.14 things I didn’t know about CSS
29m3.14 Things I Didn't Know About CSS
01h 05mHTML: The Good Parts
44mThe HTML Treasure Hunt: from JavaScripter to Front End Superhero in 29 Minutes
28mSemantic HTML: What, Why, and How
