W3C home > Mailing lists > Public > www-html@w3.org > August 2002

Re: My comments on the XHTML 2 draft.

From: Lorenzo De Tomasi <lorenzo.detomasi@libero.it>
Date: Mon, 12 Aug 2002 12:30:57 +0200
To: <www-html@w3.org>
Message-ID: <B97D5B00.1413%lorenzo.detomasi@libero.it>

on 11-08-2002 21:14, Toby Inkster at tobyink@goddamn.co.uk wrote:

> 
> To begin with, I'm just an end-user/web-developer type, not a browser
> programmer, so that's what my angle is. Here are some suggestions.
> 
> I think the new <h> element should have a "level" attribute which can
> be used as such:
> 
> <h level="1"> is a synonym for <h1>
> ...
> <h level="6"> is a synonym for <h6>
> <h level="7"> is new
> ...
More the number is low more the text is rendered big.

I think that an useful thing may be that we can use <h> with or without
level attribute.
If I don't use the level attribute in the tag I can use it in the CSS and
the browser automatically recognize the level of the nested <h> tags.
For example:
<body>
<h>Divina Commedia</h> <!-- this is level="1" -->
<section>
    <h>Inferno</h> <!-- this is level="2" -->
</section>
<section>
    <h>Paradiso</h> <!-- this is level="2" -->
        <section>
        <h>Canto I</h> <!-- this is level="3" -->
        </section>
</section>
<section>
<h level ="1">Comments</h> <!-- this is level="1" -->
    <section>
    <h>Canto I</h>  <!-- this is level="2" -->
    </section>
</section>
</body>

I think that in an xhtml doc structured as this, "<h>Divina Commedia</h>"
should be taken automatically as the title in the head section.
If I write another <title> in the head section this in the head section
wins.

> and the numbering is potentially unlimited. Then <h1> to <h6> could be
> deprecated, which I assume is the eventual aim.

> <strong> should be deprecated in favour of an <em> within an <em>.

In this case it would work in the same way:

<em>this is em</em> <!-- this is level="1" -->
and 
<em><em>this was strong</em></em> <!-- this is level="2" -->

equivalent to

<em level="1">this is em</em>
and 
<em level="2">this was strong</em>

More the number is high more the text is rendered bold.

> Another idea for an element I shall call <Title> (note: upper case T, because
> obviously there is already a <title> element) Anyway, it could
> be used to mark up the titles of books, software packages, films and songs.
> Right now, <span> classes have to be used instead.

This can substitute
<h>Divina Commedia</h> <!-- this is level="1" -->
in this way

<body>
<Title>Divina Commedia</Title> <!-- this is level="1", equivalent to
<head><title>Divina Commedia</title></head> -->
</body>
Received on Monday, 12 August 2002 06:37:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:52 GMT