Technology News

Semantic menu context

Scott digs into the history of the <menu> element. He traced it as far back as HTML 2 (!) in a 1994 changelog. The vibe then, it seems, was to mark up a list. I would suspect the intention is much like <nav> is today, but I really don’t know.

Short story: HTML 4 deprecated it, HTML 5 revived it—this time as a “group of commands”—and then HTML 5.2 deprecated it again. Kind of a bummer since it has some clear use cases.

So, it’s been quite the roller coaster for ol’ <menu>! There never seems to be any easy wins for HTML evolution. As of now, it’s in “don’t bother” territory:

I really wrote this post as a sort of counter point to the often uttered phrase “use semantic HTML and you get accessibility for free!” That statement, on its surface, is largely true. And you should use semantic HTML wherever its use is appropriate. <menu>, unfortunately, doesn’t really give us all that much, even though it has clearly defined semantics. Its intended semantics and what we actually need in reality are better served by either just using the more robust <ul> element, or creating your own role=toolbar, menubar, etc.. Using this semantic element, for semantics sake, is just that.

Direct Link →

Facebook is quietly buying up the metaverse
AngularJS vs. React.js vs. Ember.js – What are the Differences?

Related Articles

JXL turns Jira into spreadsheets

jxl-turns-jira-into-spreadsheets
Atlassian’s Jira is an extremely powerful issue tracking and project management tool, but it’s not the world’s most intuitive piece of software either. Spreadsheets, on the other hand, are pretty…

LLMs Don’t Reward Originality, They Flatten It

LLMs Don’t Reward Originality, They Flatten It
Originality is idealized, especially in tech and marketing. We’re told to “think different,” to coin new terms, to pioneer ideas no one’s heard before and share our thought leadership.  But…

WordPress.com Has a New Home on YouTube

wordpress
✋ High fives to WordPress for releasing version 5.9 on January 29! This was the long-awaited introduction of the Site Editor and the reverberations are still being felt across the…

Best Practices to Prevent eCommerce Fraud

best-practices-to-prevent-ecommerce-fraud
The opportunity of cybercriminals to attack online businesses is increasing as online shopping becomes popular. If you possess an online business, you have to protect it from fraudsters who may…