HighDots Forums  

Why are the <center> tag depricated

alt.html.tags alt.html.tags


Discuss Why are the <center> tag depricated in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Richard
 
Posts: n/a

Default Why are the <center> tag depricated - 07-07-2004 , 03:00 PM






I was making some html, and found out that center is depricated, that sounds
odd to me, cause that was a good and useful tag, can anyone tell me if there
has come anything better than it, or why else it has become depricated?

Richard



Reply With Quote
  #2  
Old   
Toby A Inkster
 
Posts: n/a

Default Re: Why are the <center> tag depricated - 07-07-2004 , 03:49 PM






Richard wrote:

Quote:
I was making some html, and found out that center is depricated, that sounds
odd to me, cause that was a good and useful tag, can anyone tell me if there
has come anything better than it, or why else it has become depricated?
Since HTML 4.0, *all* presentational elements (except <b> and <i>) have
been deprecated.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132



Reply With Quote
  #3  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Why are the <center> tag depricated - 07-12-2004 , 04:57 AM



Toby A Inkster <tobyink (AT) goddamn (DOT) co.uk> wrote:

Quote:
Since HTML 4.0, *all* presentational elements (except <b> and <i>) have
been deprecated.
I think most people would say that the non-deprecated elements <big> and
<small> are presentational, too, though this is somewhat arguable
(especially for <small>). And, arguably, <dl> with its subelements <dt>
and <dd> is presentational, since it lacks well-defined semantics and is
mostly used to get a particular visual appearance with no regard to
meaning. Moreover, <sub> and <sup> are problematic in a classification;
M<sup>lle</sup> or 1<sup>st</sup> is purely presentational, I would say.
And then there's <tfoot>. And in _attributes_ there are illogical
decisions too - e.g., the width attribute has been deprecated in some
elements but not in others.

On the other hand,
... the vectors <b>x</b> and <b>y</b> ...
and
... the species <i>Homo sapiens</i> ...
are examples of "semi-presentational" use of <b> and <i>. There's a
meaning one tries to convey, but in lack of adequate markup, one uses
elements that in principle mean nothing but bolding or italics.
Compare this with a hypothetical situation where HTML lacked
<strong> and <em> and you would want to emphasize some words in a text.

My point is that deprecation isn't quite as logical as one might think.
It's futile to try and find more logic than there is.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html




Reply With Quote
  #4  
Old   
Will Gittoes
 
Posts: n/a

Default Re: Why are the <center> tag depricated - 07-12-2004 , 06:02 AM



Jukka K. Korpela wrote:
Quote:
Toby A Inkster <tobyink (AT) goddamn (DOT) co.uk> wrote:


Since HTML 4.0, *all* presentational elements (except <b> and <i>) have
been deprecated.


I think most people would say that the non-deprecated elements <big> and
small> are presentational, too, though this is somewhat arguable
(especially for <small>). And, arguably, <dl> with its subelements <dt
and <dd> is presentational, since it lacks well-defined semantics and is
mostly used to get a particular visual appearance with no regard to
meaning. Moreover, <sub> and <sup> are problematic in a classification;
M<sup>lle</sup> or 1<sup>st</sup> is purely presentational, I would say.
And then there's <tfoot>. And in _attributes_ there are illogical
decisions too - e.g., the width attribute has been deprecated in some
elements but not in others.

On the other hand,
... the vectors <b>x</b> and <b>y</b> ...
and
... the species <i>Homo sapiens</i> ...
are examples of "semi-presentational" use of <b> and <i>. There's a
meaning one tries to convey, but in lack of adequate markup, one uses
elements that in principle mean nothing but bolding or italics.
Compare this with a hypothetical situation where HTML lacked
strong> and <em> and you would want to emphasize some words in a text.

My point is that deprecation isn't quite as logical as one might think.
It's futile to try and find more logic than there is.

Is it correct/allowed to be able to define a style for <b> and <i> elements?

i.e.
b {font-weight:normal ; font-style:italic}

If this is so, then surely there is no need to depricate these tags,
because their influence can still be changed.

Of course, I could be spouting non-sense...


Reply With Quote
  #5  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Why are the <center> tag depricated - 07-12-2004 , 09:42 AM



Will Gittoes <AskMeForIt (AT) NoSpam (DOT) org> wrote:

Quote:
Is it correct/allowed to be able to define a style for <b> and <i
elements?
It depends. There is no prohibition against that in any specification,
and generally no reason why you shouldn't do so. But...

Quote:
i.e.
b {font-weight:normal ; font-style:italic}
This is grossly illogical, since <b> markup _means_ 'bold face'. It's as
illogical as it would be to say
<font face="Arial" style="font-family:Courier New">
But not formally invalid, or otherwise forbidden. Imaginative people
might even find sensible uses for such illogical moves - e.g., when
viewing a page that illogically uses <b> just to emphasize some words a
little.

Quote:
If this is so, then surely there is no need to depricate these tags,
because their influence can still be changed.

Of course, I could be spouting non-sense...
Well, to be honest, in part you are. Deprecation has nothing to do with
the changeability of influence. The reason for deprecating <center> is
that you can and should achieve the presentational effect using CSS
instead, thereby keeping structure and semantics as separate from
presentations, which may vary. The "can" part of this is still somewhat
questionable, since you need a few tricks to replace <center>
effectively, see "Centering blocks with CSS",
http://theodorakis.net/blockcenter.html

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.