HTML problems on site.

windows

Guest
i went to validator.w3.org, and i got a message sating that my page is "not valid html 4.01 transitional" what does that mean?<br />
<br />
the site i am submitting at this time is <br />
<br />
carpenoctemtv.powweb.com<br />
<br />
Thanks<br />
<br />
also, if you see the attached file, i notice that there is a black space all around the top, sides moving the image files down a bit. how can i fix that?<!--content-->Use an HTML validator 1st...<br />
<br />
Line 20, character 51: <br />
... 0" text="#FFFFFF" leftmargin="0" topmargin="0" marginwidth=" ...<br />
^Error: there is no attribute LEFTMARGIN for this element (in this HTML version)<br />
<br />
Line 20, character 65: <br />
... FF" leftmargin="0" topmargin="0" marginwidth="0" marginheigh ...<br />
^Error: there is no attribute TOPMARGIN for this element (in this HTML version)<br />
<br />
Line 20, character 81: <br />
... 0" topmargin="0" marginwidth="0" marginheight="0"><br />
^Error: there is no attribute MARGINWIDTH for this element (in this HTML version)<br />
<br />
Line 20, character 98: <br />
... marginwidth="0" marginheight="0"><br />
^Error: there is no attribute MARGINHEIGHT for this element (in this HTML version)<br />
<br />
Line 21, character 7: <br />
<style>body { scrollbar-darkshadow-color: #000000;<br />
^Error: required attribute TYPE not specified<br />
<br />
Line 21, character 7: <br />
<style>body { scrollbar-darkshadow-color: #000000;<br />
^Error: element STYLE not allowed here; check which elements this element may be contained within<br />
<br />
Line 27, character 33: <br />
... ript language="JavaScript1.2"> <br />
^Error: required attribute TYPE not specified<br />
<br />
Line 42, character 28: <br />
<script language=JavaScript> <br />
^Error: required attribute TYPE not specified<br />
<br />
Line 73, character 82: <br />
... jpg" width="727" height="142"></td><br />
^Error: required attribute ALT not specified<br />
<br />
Line 77, character 20: <br />
<td background="img/bg1.jpg" width="727" height="413" va ...<br />
^Error: there is no attribute BACKGROUND for this element (in this HTML version)<br />
<br />
Line 93, character 16: <br />
<center>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n ...<br />
^Error: element CENTER not allowed here; possible cause is an inline element containing a block-level element<br />
<br />
Line 140, character 53: <br />
... 20 BORDER=0 HSPACE=4 VSPACE=2><br />
^Error: required attribute ALT not specified<br />
<br />
Line 144, character 34: <br />
... nter><blockquote><hr></center><br />
^Error: end tag for element CENTER which is not open; try removing the end tag or check for improper nesting of elements<br />
<br />
Line 147, character 28: <br />
Revised: November 2002.</h5><br />
^Error: end tag for element H5 which is not open; try removing the end tag or check for improper nesting of elements<br />
<br />
Line 152, character 12: <br />
</div><br />
^Error: end tag for element DIV which is not open; try removing the end tag or check for improper nesting of elements<br />
<br />
Line 153, character 21: <br />
<p class="txt">&nbsp;</p><br />
^Error: element P not allowed here; possible cause is an inline element containing a block-level element<br />
<br />
Line 154, character 11: <br />
</td><br />
^Error: end tag for FONT omitted; possible causes include a missing end tag, improper nesting of elements, or use of an element where it is not allowed<br />
<br />
Line 145, character 1: <br />
<font size=1><br />
^start tag was here<br />
<br />
Line 154, character 11: <br />
</td><br />
^Error: end tag for BLOCKQUOTE omitted; possible causes include a missing end tag, improper nesting of elements, or use of an element where it is not allowed<br />
<br />
Line 144, character 10: <br />
</center><blockquote><hr></center><br />
^start tag was here<br />
<br />
The ^ might not show in the right place posting here, but use the HTML one before the W3C<!--content-->what does it mean that the left margin, margin width, etc, is not valid?<!--content-->Here is a dynamic link to [the list of errors (<!-- m --><a class="postlink" href="http://validator.w3.org/check?uri=http%3A%2F%2Fcarpenoctemtv.powweb.com%2F&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&ss=1&outline=1&sp=1">http://validator.w3.org/check?uri=http% ... ine=1&sp=1</a><!-- m -->)]<br />
<br />
Firstly, ignore all errors like: there is no attribute "FUBAR"<br />
These are just examples of Internet Exploder or Netscape browser specific code.<br />
<br />
Add type="text/css" to all <style> tags, making sure you have <!-- comment tags --> around the code. All <style> code should be in the <head> section.<br />
<br />
Add type="text/javascript" to all <script> tags, making sure you have <!-- comment tags // --> around the code.<br />
<br />
Add alt="some text" to all <img> tags.<br />
<br />
Check for correct nesting of elements, and that elements have matching opening and closing tags. You have quite a few errors with those.<br />
<br />
All these things have been mentioned a couple of hundred times in the last few months in this forum.<!--content-->ok if you look at the new list of errors, aside from not having the alt="some text" on the images, do i need to worry about the others?<br />
<br />
<br />
<!-- m --><a class="postlink" href="http://validator.w3.org/check?uri=http%3A%2F%2Fcarpenoctemtv.powweb.com%2Findex2.htm&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&ss=1&outline=1&sp=1">http://validator.w3.org/check?uri=http% ... ine=1&sp=1</a><!-- m --><br />
<br />
here is the link to the new results....<!--content-->The leftmargin, topmargin, marginwidth, and marginheight attributes are all browser specific code. Ignore these errors. You can also add some CSS code to replicate the effect of these instructions for other browsers, so covering just about all browsers.<br />
<br />
<br />
I would add some alt attributes to all img tags, even if the text is just alt="*" on bullet-point images, and alt="" on non-important images. All images to do with navigation must have some text between the quote marks, in order to help people where the images failed to load, image loading was turned off, or the user uses a non-visual browser.<br />
<br />
<br />
Netscape [4 at least] does not support background images in <td> tags, so for those users the image will fail to load. <br />
<br />
<br />
You need <!-- comment tags --> around the CSS code.<br />
You need <!-- comment tags // --> around the javascript code.<br />
Note the different style of the two closing tags, and that there must be at least one space on either side of each side of each piece.<br />
<br />
<br />
<br />
<br />
>> WIDTH=120 HEIGHT=20 BORDER=0 HSPACE=4 VSPACE=2 <<<br />
<br />
It is recommended to "quote" all attributes in HTML 4.01; they are also best done in lower-case for forward compatibility with XHTML standards.<!--content-->
 
Back
Top