W3C home > Mailing lists > Public > public-html@w3.org > December 2007

Re: Underline element.

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Thu, 27 Dec 2007 18:42:06 -0800
Message-ID: <4774627E.40900@terrainformatica.com>
To: public-html@w3.org

Ivan Enderlin wrote:
> Hi all :)
> 
> I was reading the HTML 5 draft and something is strange about <u> tag.
> In HTML 4, <u> tag is depreciated [1], and <u> tag doesn't exist in HTML 
> 5 [2]. I don't find anymore informations about it in XHTML 1.0 or 1.1. 
> So I deduce that we can't underlined an element in HTML right now ?
> 
> Best regards,
> -Ivan
> 
> Notes :
>     [1] http://www.w3.org/TR/html4/present/graphics.html#edef-U ;
>     [2] http://www.whatwg.org/specs/web-apps/current-work/#phrase.
> 

There is one case that we use in UI for <u> - to mark shortcut combinations:

<button><u>O</u>pen</button>

We do have special behavior defined for the <u> element that
synthesizes button click event when user presses Ctrl-O
(for the button above).

So this brings some semantic meaning to the element
but this is not what it was intended for of course.

-- 
Andrew Fedoniouk.

http://terrainformatica.com
Received on Friday, 28 December 2007 02:42:20 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:51 UTC