4 ms·
Does HTML allow you to define your own abstractions? (CSS doesn't count)
by Ace17 10y ago
Does HTML allow you to define your own abstractions? (CSS doesn't count)
- marvy 10y agoNo, not really. My favorite example is: try to implement the equivalent of the LaTeX command \tableofcontents using just HTML and CSS. On the other hand, that's not a fair comparison: TeX is Turing-complete, and HTML+CSS is not. We need one more ingredient: HTML+CSS+JS. (Though using JS just to get a table of contents seems a bit silly, and it probably makes more sense to generate the HTML for the table of contents on the server, like Wikipedia does. (Imagine if every Wikipedia article required running JS just to render the table of contents.))