HTML is an outdated mess from the early Web. HTML does not support a Turing-complete macros language (moreover no macroses at all). We need to make a specification of a HTML-like thing with macroses and other advanced features (with a software to convert it to regular HTML). New tags should be easily addable. (No, I don’t insist browsers to support such things as Turing-complete macroses. We can convert from my XML format to another formats before browsing.)
https://en.wikiversity.org/wiki/Extensible_modular_markup (the draft specification)
The idea is make an “extension” of XHTML that is:
based on namespaces
extensible by anyone (only need to know programming)
will support macroses and be Turing-complete
replaces both HTML and LaTeX as legacy (LaTeX is especially bad, need to replace it with a nice and responsible markup language).
As examples, I made namespaces for Table of Contents and for syntax coloring sources.
The software already exists. It follows Automatic transformation of XML namespaces - a sophisticated, but complex to use specification. However if you want to use only basic features, no need to know that specification (we are writing anoter Extensibe Modular Markup specification and the automatic transformations is here used just to implement a software, not as a base of EMM).
So, this software can be used to convert Extensible Modular Markup into regular HTML. Note that search engines also need more tags, so adding new tags is useful also for search engines and other automatic agents. However, the usage is also for Web designers and document writers to add such things as above mentioned table of contents, colorized
pre tags, etc. Possibilities for both search engines and browsers are unlimited, because new tags can be added by users.
As first examples, I made namespaces for Table of Contents and for syntax coloring sources.
This should be standardized by W3C because my software is slow and we need alternative compatible implementations, to.
See https://vporton.github.io/extensible-markup/ - how to add it to the WICG list of projects?
Please participate in development of both the specs and software. We need a really good meta-language for Web development. Plain HTML is a bad choice for writing Web page, as it even does not support macroses, or for example syntax coloring.