Get the latest tech news

Decorative Text Within HTML


Back in 2020, Andy Bell introduced me to the idea of grouping attribute values. You've probably seen something like this before: HTML<article class="card-section-background1-colorRed" ></article> A single class over-encumbered by all sorts of things. The more modular way to write this would be: HTML<article class="card section box bg-base color-primary" ></article> That's pretty…

A set of space-separated tokens is a string containing zero or more words (known as tokens) separated by one or more ASCII whitespace, where words consist of any string of one or more characters, none of which are ASCII whitespace. But I wouldn't recommend it; you would need to change your CSS to target those particular values. I'd suggesting using underscore spacing to keep things readable and avoid having words which are accidentally class names.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of HTML

HTML

Photo of Decorative Text

Decorative Text

Related news:

News photo

Show HN: Defuddle, an HTML-to-Markdown alternative to Readability

News photo

Why can't HTML alone do includes?

News photo

TikZJax: Embedding LaTeX Drawings in HTML