You Can Just Make Your Own HTML Elements
After several years of making websites, only now have I realized that you can just define your own HTML elements. Like, HTML tags. You can just roll your own. There are no special keywords necessary. You just do it.1 Here:
<!DOCTYPE html>
<html>
<head>
<style>
your-very-own-element[something="burger"] {
display: block;
font-size: 36px;
}
</style>
</head>
<body>
<your-very-own-element something="burger">
burgerburgerbugerbugerrbugrebu
</your-very-own-element>
</body>
</html>
You can just do it. You don’t need to use a bunch of inscrutable classes with div
and span
for everything. You can just make a new element with a descriptive name and then style it. Attributes, too.2 Crazy. You can even do it with JavaScript:
The rest of this post, contemptible invasive species it is, found its way into a collection of otherwise-respectable work in Volume 0, Issue 3 of unpressed). Might as well at least go read the other stuff before it goes extinct, eh?
❦