This is a question that so far all searching for has come up null.
To explain: I want to be able to declare a tag in a CSS stylesheet that would implement many HTML tags with one tag. For example: when I post ASCII art in my blog, I need the "code" tag so the renderer doesn't mistake errant symbols for commands, the "pre" tag so it doesn't change line-break formatting, and then I want cool green text on black background for that nostalgic terminal look, and finally turn off default floating on the div class. So if I could do this:
Code:
.ASCII_art
{
apply: code;
apply: pre;
foreground-color: #00FF00;
background-color: #000000;
float: none;
}
I could just wrap one tag and be done with it, and also my commenters could do the same. Many other applications come to mind for this method. Generally, instead of specifying tags "foo, bar, and baz", I could just use a macro-tag "buzz" and declare in a stylesheet what buzz means.
Does such a concept exist in web design anywhere? What's the name of it, so I can Google for it?