3 ms·
> HTML doesn't even support tabs Sure it does. As does XML. You just have to choose deliberately to use it, via such means as <pre> or the CSS `white-space: pr
by chrismorgan 4y ago
> HTML doesn't even support tabs
Sure it does. As does XML. You just have to choose deliberately to use it, via such means as <pre> or the CSS `white-space: pre`, or, in XML, the xml:space attribute.
Incidentally, HTML and the web is a place where the superiority of tab-based indentation to space-based is particularly apparent, because you’re far more likely to encounter very narrow viewports, where reducing the width of tabs is useful, while still keeping a reasonable indentation level on wide enough screens. I do something similar to this, for example:
:root {
tab-size: 4;
@media (max-width: 50rem) {
tab-size: 2;
}
}