Non-standard HTML tags

Question:

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

Answer:

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