HTML Concepts: Commands and Facets

Published on March 29, 2022 (↻ January 22, 2023), filed under (RSS feed).

In the HTML concepts series I’m presenting lesser known ideas from the huge HTML specification. In this episode, let’s have a quick look at commands and facets.

Commands

Commands should be what you think they are. A command is defined as “the abstraction behind menu items, buttons, and links.” It’s what you issue when you interact with them, that is, click or press on either.

Accordingly,

Facets

Facets are rarely mentioned anywhere; they are something a command has. There are the following facets:

❧ Commands are easy to work with, as they represent something actionable. Facets may be what you can now recall as something that specifies and gives information about a command. Review other concepts, and see you in a follow-up post of this series.

For the king is almost too lenient for his times and only orders such murders and executions as are for the public good, never for private pleasure—and his people grumble at the lack of entertainment.

Figure: No, not one of those commands. (Copyright King Features Syndicate, Inc., distr. Bulls.)

Toot about this?

About Me

Jens Oliver Meiert, on September 30, 2021.

I’m Jens, and I’m an engineering lead and author. I’ve worked as a technical lead for companies like Google, I’m close to W3C and WHATWG, and I write and review books for O’Reilly and Frontend Dogma. I love trying things, not only in web development, but also in other areas like philosophy. Here on meiert.com I share some of my views and experiences.

If you have a question or suggestion about what I write, please leave a comment (where applicable) or a message.