3 ms·
You can create any arbitrary tag for an element and it will be treated like a span until you define its appearance with CSS. Features { display: bloc
by joquarky 1y ago
You can create any arbitrary tag for an element and it will be treated like a span until you define its appearance with CSS.
Features {
display: block;
padding-left: 1.5em;
list-style-type: disc;
}
Feature {
display: list-item;
}
Technically, you're supposed to add a dash to a custom element to avoid namespace issues with potentially new elements, but that's probably an easy search and replace if it ever happens.
This comes in very handy with XML.