473,406 Members | 2,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

ALIGN attribute not deprecated in TD tag ??

In converting my pages to 4.01 Strict, I've been removing ALIGN
attributes everywhere. I was surprised to notice that a page that
validated contained a <td align=left>.

Sure enough, when I checked at
http://www.w3.org/TR/html401/index/attributes.html
I found that while ALIGN is deprecated as an attribute for TABLE, it
is still a full-fledged pukka attribute for subelements of TABLE:
TBODY THEAD, TD, TH, etc.

Anyone know why? Was this a political decision, out of concerns that
too many people use the ALIGN attribute on those tags? Or is there
some technical reason why ALIGN was deprecated on most tags but not
all?

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #1
4 5477
Stan Brown <th************@fastmail.fm> wrote:
In converting my pages to 4.01 Strict, I've been removing ALIGN
attributes everywhere. I was surprised to notice that a page that
validated contained a <td align=left>.

Sure enough, when I checked at
http://www.w3.org/TR/html401/index/attributes.html
I found that while ALIGN is deprecated as an attribute for TABLE, it
is still a full-fledged pukka attribute for subelements of TABLE:
TBODY THEAD, TD, TH, etc.

Anyone know why? Was this a political decision, out of concerns that
too many people use the ALIGN attribute on those tags? Or is there
some technical reason why ALIGN was deprecated on most tags but not
all?


Practically all presentational table attributes were left in place
(width, cellpadding, cellspacing, border etc.), a cop out imo.
Headless

--
Email and usenet filter list: http://www.headless.dna.ie/usenet.htm
Jul 20 '05 #2
Stan Brown wrote:
In converting my pages to 4.01 Strict, I've been removing ALIGN
attributes everywhere. I was surprised to notice that a page that
validated contained a <td align=left>.

Sure enough, when I checked at
http://www.w3.org/TR/html401/index/attributes.html
I found that while ALIGN is deprecated as an attribute for TABLE, it
is still a full-fledged pukka attribute for subelements of TABLE:
TBODY THEAD, TD, TH, etc.

Anyone know why? Was this a political decision, out of concerns that
too many people use the ALIGN attribute on those tags? Or is there
some technical reason why ALIGN was deprecated on most tags but not
all?


Because you do something like the following:
<td align="char" char=".">

That will align everything around the period character. Maybe "align"
was the wrong thing to name it because it suggests presentation, but it
is (theoretically, of course) an aide. Maybe something like
axis-char="." would have been more structural.
Jul 20 '05 #3
In article <fB*************@fe01.atl2.webusenet.com> in
comp.infosystems.www.authoring.html, Keith Bowes <do****@spam.me>
wrote:
Because you do something like the following:
<td align="char" char=".">

That will align everything around the period character. Maybe "align"
was the wrong thing to name it because it suggests presentation, but it
is (theoretically, of course) an aide. Maybe something like
axis-char="." would have been more structural.


I'm afraid I don't understand the point you're making. CSS lets you
align on a particular character, so that _could_ have been
deprecated in HTML4, but it wasn't. That's what I was asking: why
not?

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #4
Stan Brown wrote:
In article <fB*************@fe01.atl2.webusenet.com> in
comp.infosystems.www.authoring.html, Keith Bowes <do****@spam.me>
wrote:
Because you do something like the following:
<td align="char" char=".">

That will align everything around the period character. Maybe "align"
was the wrong thing to name it because it suggests presentation, but it
is (theoretically, of course) an aide. Maybe something like
axis-char="." would have been more structural.

I'm afraid I don't understand the point you're making. CSS lets you
align on a particular character, so that _could_ have been
deprecated in HTML4, but it wasn't. That's what I was asking: why
not?


Hmm. I thought that was the reason some W3C person gave me once: that
when HTML 4.0 came out in 1997, the CSS2 spec was still a working draft
and so the presentational attributes for tables were kept, but I guess
I'm mistaken. So, I guess the only possible reason left is: because the
W3C used tables for their home page's layout. :)
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: aragon | last post by:
Hi all, is it legal to use a fully-numeric string as "name" attribute for the <select> tag in the XHTML standard? E.g.: <form action="action.php" method="get"> <select name="12345"> <option...
6
by: Viken Karaguesian | last post by:
Hello, Just wondering what the difference is between "float" and "align"? If I align a picture to the left, is that not the same as floating it? Can align and float be used together or do you...
11
by: Ben Amada | last post by:
Hello, When centering a block of HTML, in the past, I've always used: <div align="center"> ... </div> However, in VS 2005, I get the following warning: "Validation (XHTML 1.0...
2
by: Mark Rae | last post by:
Hi, I've been asked to "update" an existing fairly simple website to make it XHTML-compliant i.e. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
11
by: Jasbird | last post by:
Has the name attribute deprecated? I ask this because ASP.NET 2 warns me against using it, says that it has been deprecated and doesn't use it (on the client) when creating a radio button list....
2
by: Icarus - iD_Ten_T helper | last post by:
I am currently teaching myself PHP, JS, HTML and CSS. I would say I am a beginner to interemediate at varying levels within all 4, however I have some queries and I wonder if any of you can...
0
by: rafeig77 | last post by:
I want help How I can align rectangles differ in its tow dimensions inside big rectangle with lesser waste in area ? for mor information align.rar - 1.8 Kb or: copy this code to text file...
13
by: Roderik | last post by:
Hi, I am wondering why (half of the) squared images are not aligned on the right of the text in Internet Explorer (using <img ... align="right" />. I thought this was supported even in IE. In FF...
4
AmberJain
by: AmberJain | last post by:
Hello, I know a bit of HTML and CSS. I'm designing my personal website. I want to put an image on one of my pages such that it has 'border' around it and it should be right aligned. And I want my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.