W3C home > Mailing lists > Public > www-html-editor@w3.org > July to September 2006

[xhtml2] level attribute

From: Jonathan Worent <jworent@yahoo.com>
Date: Thu, 3 Aug 2006 11:25:24 -0700 (PDT)
Message-ID: <20060803182524.56394.qmail@web32205.mail.mud.yahoo.com>
To: www-html-editor@w3.org
I had originally posted this in the discussion list not realizing this was the proper place to make a suggestion.

I'd like to suggest adding a level attribute to both em and strong tags. This attribute would be used to set the level of emphasis/importance rather than by nesting, as is currently implied for strong and suggested by Laurens Holstfor em. The level attribute would take a negative integer, to indicate, de-emphasis/less importance, a positive integer, to indicate increasing emphasis/importance, or a "0", to indicate no change. "0" would be the default. There would need to be a reasonable limit for the number of levels, both positively and negatively.

Example: <em level="1">emphasized text</em>

I think a level attribute is better than nesting because it allows for reducing the emphasis/importance below normal. Nesting can only increase this. 

A use-case where de-emphasis would be needed is in marking up a transcript. (WCAG requires this for accessibility) De-emphasis would be used to indicate that the speaker whispered. 

A use-case where indicating less importance would be needed would be an aside or digression.

If this cannot be done then I would suggest as an alternative: Follow Laurens suggestion for em and add 2 new elements. One for indicating de-emphasis, One of indicating less importance. I leave the naming of them to you.

Thank you,

Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2/min or less.
Received on Thursday, 3 August 2006 18:25:31 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:08:55 UTC