Just as JSON
is a light and simple alternative to XML
for data transmission and other uses, is it possible to create an alternative for HTML
and that it is natively interpreted by the browser?
For example, the following codes displays the message: Hello World
.
HTML:
<div id="mydiv" class="myclass">
<span>Hello World</span>
</div>
Alternative HTML:
div #mydiv .myclass
span >Hello World
Comparison:
HTML
: 68 characteres.Alternative HTML
: 41 characteres.- The
Alternative HTML
has approximately 40% fewer characters.
Some preprocessors already have a syntax that could be taken as a reference, such as: http://haml.info
Maybe I don't know the complexity, the scope or if this has already been evaluated, but my question is if there are reasons not to create the Alternative HTML
.