Forum Moderators: open
# Line 176, column 41: document type does not allow element "TABLE" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag <table width="75%" border="1">
^
Here is the code surrounding the error, but i dont know where i'm going wrong, please keep it simple this is my first time on this site!:
170: <li><a href="#r_w_trs" class="links"><strong>Womens Legwear</strong></a>
171: <li><a href="#r_m_top" class="links"><strong>Mens Tops</strong></a>
172: <li><a href="#r_w_top" class="links"><strong>Womens Tops</strong></a>
173: </ul>
174: <a name="n_m_jks"></a><strong><font size="2" face="Arial, Helvetica, sans-serif" color="#000099">Nomad
175: Mens Jackets.</font></strong> <br> <br> <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
176: <table width="75%" border="1">
177: <!--DWLayoutTable-->
178: <tr>
179: <td height="20" colspan="5" valign="top"><div align="center"><font size="2" face="Arial">Nomad
180: Mens Jackets sized Medium - Extra Extra Large</font></div></td>
181: </tr>
182: <tr>
183: <td width="111" height="20" valign="top"><!--DWLayoutEmptyCell--> </td>
184: <td width="111" valign="top"><div align="center"><font size="2" face="Arial">Medium</font></div></td>
185: <td width="111" valign="top"><div align="center"><font size="2" face="Arial">Large</font></div></td>
Are you getting a lot of errors on the validation? Is this the first error, if not, what is the first error?
I don't think the validator will like you putting a table inside a font tag. That probably what is causing the problem.
You should also consider ditching font tags altogether and handling your fonts with CSS. This is the first and easiest step towards CSS - it will make you page smaller and more search engine friendly.
Besides the <font> tag was officially deprecated in 1997!
Browsers have long used internal error recovery to handle these situations as best they can, depending on the elements involved. But you will often find that the outer element does not "work" the way you want it to in these invalid, error recovery situations.
For example, it's common in "street code" to place a <font></font> or <strong></strong> tags surrounding a whole stretch of <p> tags -- it works in many browsers but the <p> is a block level so this construction is a similar error to the one reported above.
[edited by: tedster at 12:03 am (utc) on Mar. 8, 2004]
Also, fix your dreamweaver settings so that nested tables are placed on a new line, currently they come on the same line as your td tags, that makes it almost impossible to read the code.
this was a nice reminder for me why I don't use dreamweaver or any wysinwyg (what you see is NOT what you get) type html editors, their habit of throwing in tags at random makes it harder to create a solid page, not easier as they claim.
If you are new to CSS then check out Nick_Ws CSS Crash Course [webmasterworld.com] (from the CSS forum library). The first two pages should be enough to sort out fonts for you.
<td><div align="center"><font size="2" face="Arial">Glove Size</font></div></td> and add a class, there's actually no need for the div, make a class like this:
td.info1 {
text-align:center;
font-size:90%;
font-family:arial, sans-serif;
}
then apply it like this:
<td class="info1">Glove Size</td>
See how much cleaner that is?
Now you have full control over the page styling from the central stylesheet, you can change the font sizing from one location, much less code on the page.
For things like this:
<a href="#Top" title="Back to the top"><font color="#666666" size="1" face="Arial, Helvetica, sans-serif">Back
to the top.</font></a> do the same, only for the a tag, like this:
a.page-nav1, a.page-nav1:visited {
color:#666666;
font-size:80%;
font-family:helvetica, arial, sans-serif;
}
then apply it like this:
<a href="#Top" title="Back to the top" class="page-nav1">Back to the top.</a>
Now that's the link is controlled by CSS, you can apply other behaviors to it, like:
a.page-nav1:hover {
text-decoration:none;
color:red;
}
link pseudo classes have to be in this order on your stylesheet:
a, a:link
a:visited [if you want the visited condition to have a different color than the normal link, if you want it the same, put the a:visited together with the a, a:link
a:hover
a:active
.
>> WYSIWYG ==> what you see is NOT what you get <<,
ah, that'll be the old WYGIQWYW.