On HTML (and HTML in 2020)
Published on November 10, 2020 (↻ August 18, 2021), filed under Development (RSS feed for all categories).
HTML is awesome. If I were to call out three important facts and aspects of HTML I’d pick the following:
-
Hyperlinks,
a
elements, undiluted anchors withoutrel=nofollow
and without new-window nonsense are what makes for the World Wide Web. You here know that, but not everyone is aware. -
HTML, as a technology, has not nearly been exhausted yet in terms of the semantic wealth that it offers, nor when it comes to its technical optimization potential.
-
Writing good HTML makes not only for a superb craft that you cannot just put on your CV without studying and practicing; it really is what allows us to make the vision for the Web a reality: to make information accessible to everyone.
Where are we on those fronts?
That’s something that the now-yearly Web Almanac helps to answer; and something I’m very happy to have worked on answering in this year’s HTML chapter, with support by Catalin Rosu, Ian Devlin, and the Web Almanac team: Part I, Chapter 3: Markup.
-
Since the beginning of time,
a
elements have been among the most popular, most commonly used HTML elements. In 2020, they are trailing onlydiv
elements: The 6,347,919 mobile pages we analyzed for the Almanac use 844,580,132 anchors. The probability that a document contains ana
element is therefore very high: It’s at 98.32%. -
HTML has 112 elements. The median web page uses 30. The 90th percentile, 41. You don’t need to, you can’t even use all HTML elements. Yet it’s likely that we observe quite a one-sided use of HTML; consider just the extreme popularity of
div
andspan
elements. HTML is not nearly being exhausted yet. -
When you then look at not only what markup is being used (those custom elements, those obsolete elements, those proprietary and invented elements) and how that markup is being used (from
h7
andh8
headings to the specific use ofdetails
andsummary
), and then note how many pages are (of course!) invalid when they’re ever validated (79%), then… then we’re not left with much of a craft, then, after decades, we haven’t quite made much of the vision yet.
Enjoy the full report, and keep pushing on your use of HTML. (If you’re interested, I write much about HTML, including publishing a little book series about small things to improve HTML code.)
About Me
I’m Jens (long: Jens Oliver Meiert), and I’m a frontend engineering leader and tech author/publisher. I’ve worked as a technical lead for companies like Google and as an engineering manager for companies like Miro, I’m a contributor to several web standards, and I write and review books for O’Reilly and Frontend Dogma.
I love trying things, not only in web development (and engineering management), but also in other areas like philosophy. Here on meiert.com I share some of my experiences and views. (Please be critical, interpret charitably, and give feedback.)
Read More
Maybe of interest to you, too:
- Next: Upgrade Your HTML II
- Previous: People Care
- More under Development
- More from 2020
- Most popular posts
Looking for a way to comment? Comments have been disabled, unfortunately.
Get a good look at web development? Try WebGlossary.info—and The Web Development Glossary 3K. With explanations and definitions for thousands of terms of web development, web design, and related fields, building on Wikipedia as well as MDN Web Docs. Available at Apple Books, Kobo, Google Play Books, and Leanpub.