Get the latest tech news

You can make up HTML tags


:(Programming) Instead of writing HTML like this: <div class=cool-thing> Hello, World! </div> … you can write HTML like this: <cool-thing> Hello, World! </cool-thing> … and CSS like this: cool-thing { display: block; font-weight: bold; text-align: center; filter: drop-shadow(0 0 0.5em #ff0); color: #ff0; } Browsers handle unrecognized tags by treating them as a generic element, with no effect beyond what’s specified in the CSS. This isn’t just a weird quirk, but is standardized behavior.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of html tags

html tags

Related news:

News photo

Minifying HTML for GPT-4o: Remove all the HTML tags