Jens Oliver Meiert

HTML Concepts: Form Owners

Post from December 18, 2021, filed under .

Today in “HTML Concepts”: form owners. It’s not what you are when you put a form on a page.

What are form owners? In essence, form elements that so-called form-associated elements are tied to.

Form-associated elements are the following:

button, fieldset, input, object, output, select, textarea, img, as well as form-associated custom elements.

(These fall into certain categories, namely listed, submittable, resettable, and autocapitalize-inheriting elements.)

Form ownership is straightforward, as the connection of a form-associated element with a form owner is simple:

The element is associated with its nearest ancestor form element—unless it is a form-associated listed element (anything not img) and has a form attribute that overrides this association. (One can construct scenarios in which neither is the case.)

In many cases one can say that each form element has a form owner, its parent form element. (And you, if you own a web form, can still call yourself a form owner, too.)

Tweet this? (If it changed your life, you delight me with a coffee.)

About Me

Jens Oliver Meiert, on April 29, 2020.

I’m Jens Oliver Meiert, and I’m an engineering manager and author. I’ve worked as a technical lead for Google, I’m close to the W3C and the WHATWG, and I write and review books for O’Reilly. Other than that, 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 questions or suggestions about what I write, please leave a comment (if available) or a message.

Read More

Have a look at the most popular posts, possibly including:

Looking for a way to comment? Comments have been disabled, unfortunately.

Cover: The Web Development Glossary.

Perhaps my most comprehensive book: The Web Development Glossary (2020). With explanations and definitions for literally thousands of terms from Web Development and related fields, building on Wikipedia as well as the MDN Web Docs. Available at Apple Books, Kobo, Google Play Books, and Leanpub.

Stay up-to-date? Follow me by feed or on Twitter.

Found a mistake? Email me, jens@meiert.com.

You are here: HomeArchive2021 → HTML Concepts: Form Owners

Last update: December 18, 2021

Professional frontend developers produce valid HTML and CSS.