running pages through W3C

They have: 20 posts

Joined: May 2003

I have ran my new page layout through W3C till i corrected every error i could. I am now STUCK with attribute errors and do not know how to get rid of them. Can anyone help me.
Line 16, column 6: required attribute "TYPE" not specified (explain...).

^
Line 52, column 29: required attribute "TYPE" not specified (explain...).
<script language="JavaScript">
^
Line 64, column 96: there is no attribute "TOPMARGIN" (explain...).
...="#3366CC" alink="#3366CC" topmargin="0" background="bg.gif">
^
Line 66, column 28: there is no attribute "HEIGHT" (explain...).

^
Line 68, column 46: there is no attribute "BACKGROUND" (explain...).

^
Line 95, column 47: there is no attribute "BORDERCOLOR" (explain...).
... » http://www.vectorbytez.com/index3.html

Keep trying youll get it..

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Try changeing:

and
<script language="JavaScript">

To:

and
<script type="text/javascript">

The atrributes, Topmargin, height, bordercolor and background shouldn't be used. Use CSS to control that.

note: Topmargin is a MS hack, it's not even HTML.

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

Well, I thought I posted in reply to this but apparently I didn't. Sad

You could also remove the css from you html document and place it in a file named "style.css" for example.

Learn about linking style sheets HERE.

Add margin-top: 10px; to your style sheet to replace topmargin="10".

body { margin-top: 10px; }

Bordercolor and the td bakground can also be fixed using css. Do a google seach and find lots of info on this.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.