W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2006

[whatwg] <CENTER>, <MENU>, <DIR>, <NL>

From: Simon Pieters <zcorpan@hotmail.com>
Date: Tue, 17 Jan 2006 08:28:05 +0000
Message-ID: <BAY109-F61AE79A32EB5E2ED01170B41A0@phx.gbl>
Hi,

From: "Eugene T.S. Wong" <lists.eugenetswong@gmail.com>

><CENTER>Marketing Opportunity</CENTER>
[...]
>The example is overkill to demonstrate just 1 line of code, but I want to  
>strongly emphasize through demonstration that <CENTER> is used very  
>sparingly and only on specific locations. In this case, it is used as a  
>title.
>
>I refuse to use <H1> as a title, based on my own principles that there can  
>be only 1 title, just as there can be only 1 document root. There can be  
>multiple headings, but not mulitiple titles for each document.

There is a <title> element type for this purpose. Use the following CSS:

   head { display:block; text-align:center; }
   title { display:inline; }

If you use <center> (or <h1>, or <div>) you are still duplicating the 
<title>, no?

Regards,
Simon Pieters
Received on Tuesday, 17 January 2006 00:28:05 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:25 UTC