W3C home > Mailing lists > Public > public-html@w3.org > February 2009

Re: [html5] proposal to add <text> element.

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Wed, 11 Feb 2009 18:45:27 -0800
Message-ID: <49938D47.1070106@terrainformatica.com>
To: public-html <public-html@w3.org>

Simon Pieters wrote:
> 
> On Wed, 11 Feb 2009 02:36:58 +0100, Andrew Fedoniouk 
> <news@terrainformatica.com> wrote:
> 
>>
>> I propose to add <text> element to the list of supported elements.
>> <text> is exactly <p> in all meanings other than default styling: it 
>> has no margins by default.
>>
>> Having it in place will help to deal with the text in WYSIWYG editors 
>> and in other places where generic text container is required.
>> Outlook for example creates paragraphs as <div>s so in mail systems 
>> that do not use or have limited CSS support text
>> appears without "extra lines". Many pages too abuse <div> element - 
>> are using it as just a margin-less text element.
>> That is not so pretty, IMO.
> 
> I don't understand why <text> would be better than <div>?
> 


<div> stands more for "division" rather than for block of text.

There are no other generic text container in html other
than <p>. And semantically speaking not any text can be marked
up as "paragraph".

Consider these cases:

<figure>
  <img>
  <text>Photo by Mariel</text>
</figure>

And hierarchical list for example:
<li>
   <text>Caption</text>
   <ul>
      ...sub-items...
   </ul>
</li>

<text> can be used in all cases when anonymous block[1] - text
container is created to define explicitly that fragment
for styling purposes.


[1] http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level

-- 
Andrew Fedoniouk.

http://terrainformatica.com
Received on Thursday, 12 February 2009 02:45:58 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:01 UTC