HTML Tags: An Opposite to Emphasis?
I thought I’d write a quick post about something that always seems missing when I’m marking up content for a web project. HTML provides us with plenty of tags that increase the importance/weight of text, but very few (if any) to decrease the weight. If you want to emphasize text, you have a number of reasonable options:
- <em> – meaning “emphasis”
- <strong> – meaning “strong emphasis”
- <b> and <i> – deprecated, but accomplish similar goals
- <h1> … <h6> – headers, usually larger fonts
- <big> – may mean size, may mean importance
But where do I turn if I’d like to deemphasize text. There are lots of situations where I’d like to semantically define some content as less important than the surrounding content. Typically, I just use a <small> tag, but I feel like that’s not ideal… I don’t necessarily want to make the text smaller.
Here are some ideas I’ve brainstormed… I’m looking for short words that won’t interfere with legibility of inline content:
- <de> – meaning “depreciate” or “deemphasize”
- <dim> – meaning “diminish”
- <dp> – meaning “downplay”
- <ig> – meaning “ignorable”
- <less> – meaning “lessen” or “less important”
- <min> – meaning “minimize”
- <un> – meaning “unimportant” or “unnecessary” or “understate”
- <weak> – the opposite of <strong>
What do you think? Would there be any value to an HTML tag that allows us to semantically de-emphasize text? Do you have any ideas
Comments(9)
I thought “surely this already exists”, but two minutes of Googling convinced me that you’re right!
Of your ideas, I like “dim”, but that seems to be stepping on presentation’s toes, and is not a purely semantic tag. So I would pick “weak” as the best alternative, especially because it already has a counterpart in “strong”
I think this could be very useful for helping a screen-scraper or other service figure out what to knock off from a ball of presentation it had fetched – like the “member since” stuff that’s typically next to a username in lists.
As long as we’re blue-skying why not a hierarchical tag (like heading tags) for non heading content – Contextually Important, Contextually Insignificant
Just a thought..
Hmmm my contextual ‘c1′ and ‘c6′ tags are missing from my comment.
Sorry Saul… WordPress probably stripped out the tags. I presume you meant <c1> and <c6>. Not a bad idea, although it’s a bit more than I’d need in any of the cases I’ve run into.
My friend Marc on Facebook wrote:
My friend Jim on Facebook writes:
To be perfectly honest, I’m having trouble coming up with a good example. Best one I can think of at the moment: I was marking up a table of contents, and each list item consisted of a chapter number and a chapter name. For example:
Unit 2: Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb (continued)
That entire thing is the title of the chapter, but different parts are arguably more important than others. Depending on my mood, I could make a case that any of the following should be deemphasized:
“Unit 2″
“or: How I Learned to Stop Worrying and Love the Bomb”
“(continued)”
The reasons vary, but I think any of them is a good candidate. If I think of a better example, I’ll post that too. I simply think that we should have the option to go either way.
To Jim, I’d say that you’re mistaking style for semantic markup. HTML isn’t a style language, it’s a markup language. The whole point of HTML CSS is that the presentation style should be separated from the meaning of the markup. You shouldn’t be tagging something with <em> just because you want it to appear emphasized… it’s a subtle distinction, since emphasis nearly always implies a visual difference as well.
Further Facebook conversation:
Marc:
Me:
Jim:
Me:
Update: Looks like this has been discussed previously by the WHATWG…
See: WHATWG Archive search for “de-emphasis”
One responder posited a tag called <dem> Most of the responses seemed to oppose the addition of such a tag… nobody gave any really good examples of a good usage. One odd thing was that they all seemed to assume that the markup would be withing the body copy of a text, rather than in a header/footer/sidebar/table, etc.
Doesn’t seem like they came to any conclusions, so I guess I’m stuck with using “small”… but I’m definitely going to bee keeping my eye out for an example of why this tag would be a good addition to HTML.
I found this post as I’m currently trying to find a way to de-emphasize the importance of some footer text on a site. Since the footer text with stuff like ‘copyright’ and ‘all rights reserved’ is included on all pages of the site Google ranks them as pretty strong keywords, where they in fact doesn’t say anything about the site. That’s an obvious example, for SEO purposes, that I can think of…