Please validate this html code  | | |
March 14th, 2008, 11:21 AM
|
#1 (permalink)
| | Ultimate Member
Join Date: Jun 2004 Location: England
Posts: 1,407
| Please validate this html code
The W3C validator tells me there's an error with the closing body tag on line 16.
I don't see the error. Code: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11//DTD/xhtml1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title> </title>
</head>
<body>
</body>
</html> |
| |
March 14th, 2008, 12:54 PM
|
#2 (permalink)
| | Caveat Emptor
Join Date: Mar 2005 Location: Out of my mind
Posts: 3,241
|
Got me...try putting someting IN <body> </body>??? |
| |
March 14th, 2008, 02:25 PM
|
#3 (permalink)
| | Ultimate Member
Join Date: Jun 2004 Location: England
Posts: 1,407
|
Thanks for the suggestion.
I've tried that but have not received the desired response. |
| |
March 14th, 2008, 02:31 PM
|
#4 (permalink)
| | Caveat Emptor
Join Date: Mar 2005 Location: Out of my mind
Posts: 3,241
|
Sorry, I'm not a html pro, but can program the pants off most people LOL
Go back and start simple...for now...REMOVE the <body> </body> tags and see what happens.
Sometimes syntax checkers don't always point you at the exact error...trust me  |
| |
March 14th, 2008, 02:36 PM
|
#5 (permalink)
| | Super Stealthy Moderator
Join Date: Jan 2003 Location: Outside the box
Posts: 5,557
|
bleh add something tot the body for instance <p></p> then it validates fine. Basically there is nothing wrong with the code as is, its just complaining because you have an empty body tag
__________________ “Every question involves someone having to work for an answer, isn't it about time you did your share”
"Non-technical questions sometimes don't have an answer at all."
Linus Torvalds
Last edited by RicheemxX : March 14th, 2008 at 02:38 PM.
|
| |
March 14th, 2008, 02:50 PM
|
#6 (permalink)
| | Caveat Emptor
Join Date: Mar 2005 Location: Out of my mind
Posts: 3,241
| |
| |
March 14th, 2008, 03:08 PM
|
#7 (permalink)
| | Super Stealthy Moderator
Join Date: Jan 2003 Location: Outside the box
Posts: 5,557
|
Pretty much, but you can't just remove the tag, or just add text. For it to validate properly you have to wrap the text in a container element <p></p>. Don't ask me why because I haven't a clue, but thats what the dang site said. |
| |
March 14th, 2008, 03:14 PM
|
#8 (permalink)
| | Caveat Emptor
Join Date: Mar 2005 Location: Out of my mind
Posts: 3,241
|
Cool...I was close, but felt chastized anyways  |
| |
March 14th, 2008, 03:58 PM
|
#9 (permalink)
| | Ultimate Member
Join Date: Jun 2004 Location: England
Posts: 1,407
|
Thank you very much.
Your generosity in this matter will not go unrewarded. |
| |
March 14th, 2008, 04:01 PM
|
#10 (permalink)
| | Caveat Emptor
Join Date: Mar 2005 Location: Out of my mind
Posts: 3,241
| |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |