Non-standard HTML tags


Can I create my own custom HTML tags? For example <page></page>


By spec : yes, you can, but their name must contain at least one hyphen.

Really : yes, you can – browsers will eat everything. Except in older IEs, where you need to call document.createElement on any tags it doesn't recognize so that they don't become self-closing.

Also, you can create tags in your own namespaces.

Specification .

Scroll to Top