<link rel="stylesheet" type="text/css" href="mystyle.css" />
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Frameset//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
The first row denotes the XML version and the character encoding for the parser (in this case the web browser) to use.FishBoy said:and what does all this mean??.. sorry im learning html im still new to it.. i know i should've learned it long time ago but oh well...
Code:<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Frameset//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Frameset//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>Menu</title>
<link rel="stylesheet" type="text/css" href="../css/mycss.css" />
</head>
<body>
<table border='1' cellspacing='3' cellpadding='0' align='center'>
<tr><td>Home</td></tr>
<tr><td><a href="../products.html" target='MainFrame'>Products</a></td></tr>
<tr><td><a href="../contact.html" target='MainFrame'>Contact</a></td></tr>
<tr><td><a href="../links.html" target='MainFrame'>Links</a></td></tr>
<tr><td><a href="../feedback/index.html" target='MainFrame'>Feedback</a></td></tr>
<tr><td><a href="../honesty.html" target='MainFrame'>I Declare</a></td></tr>
<tr><td><a href="../css/mycss.css" target='_blank'>My CSS</a></td></tr>
<tr><td><a href="http://alexis/~i2222d29/index.html" target='_blank'>Alexis</a></td></tr>
</table>
</body>
</html>
Line 9, column 6: document type does not allow element "body" here
<body>
Line 21, column 6: end tag for "html" which is not finished
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
FishBoy said:why isn't that html code validatting?
Code:<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Frameset//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <title>Menu</title> <link rel="stylesheet" type="text/css" href="../css/mycss.css" /> </head> <body> <table border='1' cellspacing='3' cellpadding='0' align='center'> <tr><td>Home</td></tr> <tr><td><a href="../products.html" target='MainFrame'>Products</a></td></tr> <tr><td><a href="../contact.html" target='MainFrame'>Contact</a></td></tr> <tr><td><a href="../links.html" target='MainFrame'>Links</a></td></tr> <tr><td><a href="../feedback/index.html" target='MainFrame'>Feedback</a></td></tr> <tr><td><a href="../honesty.html" target='MainFrame'>I Declare</a></td></tr> <tr><td><a href="../css/mycss.css" target='_blank'>My CSS</a></td></tr> <tr><td><a href="http://alexis/~i2222d29/index.html" target='_blank'>Alexis</a></td></tr> </table> </body> </html>
these are the errors from the validator
Oh right, that's probably it, yes. Never used XHTML 1.0 Frameset.melon said:Is XHTML 1.0 Frameset what you want to use? I admit I don't know much about what project you're doing, but try changing the DOCTYPE to XHTML 1.0 Transitional or XHTML 1.0 Strict. That may be why it's not validating correctly.
Oh, I didn't know that. That's good to know, thanks Geffy.Geffy said:just a note, for actual CSS rendering
MSIE has two "box models" which is uses to figure out how to divide up a page with CSS. If the first line of the page is <!DOCTYPE html PUBLIC ...... then it will use the more compliant box model. So if you are being completely and properly XHTML compliant you will have <?xml version="1.0" ....... and MSIE will use its "Quirky" box model and your CSS can end up rendering incorrectly. For this reason it is often easier (CSS wise) to leave off the <?xml .... line slightly breaking your compliance, though no validator will truely fault you for this, in order to improve page rendering. Just thought I would mention this if you were having any problems with the way in which your CSS was being applied to your page in MSIE. Hopefully MSIE7 will fix this and we can all go back to writing properly compliant websites again.