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

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