W3C HTML Validator
Moderator: General Moderators
W3C HTML Validator
I was trying out W3C's Validator and returned more than 100 invalid tags.
<BODY LEFTMARGIN=0 TOPMARGIN=0 MARGINHEIGHT=0 MARGINWIDTH=0>
does not seem to be acceptable.
Hows that when all browsers are accepting it ? Isnt this a valid tag ?
there is no attribute "LEFTMARGIN"
and same for rest 3.
How else can we define the margin positions of the document body ?
<BODY LEFTMARGIN=0 TOPMARGIN=0 MARGINHEIGHT=0 MARGINWIDTH=0>
does not seem to be acceptable.
Hows that when all browsers are accepting it ? Isnt this a valid tag ?
there is no attribute "LEFTMARGIN"
and same for rest 3.
How else can we define the margin positions of the document body ?
Im trying to have the page pass through the validator error free.
And what abt Javascript ? It doesnt seem to be parsing Javascript because this is what I did :
gives a lot of errors :
"TABLE" not finished but containing element ended
</NOSCRIPT>
end tag for "TABLE" omitted, but its declaration does not permit this
</NOSCRIPT>
start tag was here
<TABLE BORDER=0 WIDTH=780 ALIGN=center>
document type does not allow element "TR" here
<TR><TD>etcetc</TD></TR>
And what abt Javascript ? It doesnt seem to be parsing Javascript because this is what I did :
Code: Select all
<SCRIPT LANGUAGE=Javascript TYPE="text/javascript">
var ScreenWidth=screen.width,allowedWidth;
if (ScreenWidth>=1000) allowedWidth=1000; else allowedWidth=780;
document.write('<TABLE BORDER=0 WIDTH='+allowedWidth+' ALIGN=center>');
</SCRIPT>
<NOSCRIPT>
<TABLE BORDER=0 WIDTH=780 ALIGN=center>
</NOSCRIPT>
<TR><TD>etcetc</TD></TR>"TABLE" not finished but containing element ended
</NOSCRIPT>
end tag for "TABLE" omitted, but its declaration does not permit this
</NOSCRIPT>
start tag was here
<TABLE BORDER=0 WIDTH=780 ALIGN=center>
document type does not allow element "TR" here
<TR><TD>etcetc</TD></TR>
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
Im slowly getting this to work out.
1.
2.
1 seems to actual method (accepted) but its entering a line break so the table height becomes a bit more (I cant assign actual value)
2 on the other hand gives the size of the table - the same size when no form tags are included.
So how am I suppossed to get rid of that line break ?
1.
Code: Select all
<FORM>
<TABLE>
</TABLE>
</FORM>Code: Select all
<TABLE>
<FORM>
</FORM>
</TABLE>2 on the other hand gives the size of the table - the same size when no form tags are included.
So how am I suppossed to get rid of that line break ?
some tips:
all tags and attribute-names should be lowercase
take away as much design attributes as you can, put it in an css file and include it
visit http://www.w3schools.com for CSS and HTML tips and examples
all tags and attribute-names should be lowercase
take away as much design attributes as you can, put it in an css file and include it
visit http://www.w3schools.com for CSS and HTML tips and examples