HTML Concepts: Commands and Facets

Post from March 29, 2022 (↻ January 22, 2023), filed under  (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 or tweet 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 Google, I’m close to W3C and WHATWG, and I write and review books for O’Reilly. I love trying things, sometimes including philosophy, art, and adventure. 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 (if available) or a message. Thank you!