WebAIM - Web Accessibility In Mind

E-mail List Archives

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

for

From: julian.rickards
Date: Dec 16, 2004 11:20AM



<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>