WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: id attribute in <td>- correct or incorrect?

for

Number of posts in this thread: 2 (In chronological order)

From: Lee, Samson (NIH/NIDCR)
Date: Thu, Dec 16 2004 11:04AM
Subject: id attribute in <td>- correct or incorrect?
No previous message | Next message →









<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->








<span style='font-size:10.0pt;
font-family:Arial'>Is it wrong to use id attribute in <td>? I found this
to be needed in a complicated table, but I&#8217;ve never seen this. Dreamweaver
shows this attribute in its intellisense, but I want to make sure if it&#8217;s
OK to use this way.





From: julian.rickards
Date: Thu, Dec 16 2004 11:20AM
Subject: Re: id attribute in <td>- correct or incorrect?
← Previous message | No next message


<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word">




@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
page: Section1
}



The id
attribute is a Core attribute and may be applied to any tag (I am not certain
about the <html>, <head> or some of the other tags that appear in
the <head> section so for the time being, forget about those). You may use
the id to apply style or&nbsp;as a hook for scripting. For example, if you are
using tables for layout, you could create <td id="navbar"> and then create
styles based&nbsp;on the id such as&nbsp;td#navbar a:link {color: red;}. Yes, DW
is correct.

<FONT face=Tahoma
size=2>