valid html problems

having some problems with my html being valid

Page 1 of 1

2 Replies - 611 Views - Last Post: 04 October 2009 - 04:29 PM

#1 lilmike  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 25
  • Joined: 01-February 09

valid html problems

Posted 04 October 2009 - 02:06 PM

Hi,
I was validating my html with the w3c validator at http://validator.w3.org/
I got 34 errors, most of which I can't figure out.
I think this might help me figure out errors with all my other sites.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"   "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
<meta name="description" content="The homepage of Michael Taboada and MTGames, makers of Dragons MOO and hunt.">
<meta name="keywords" content="games, MTGames, Dragons, Dragons MOO, MOO, Michael Taboada, Michael, Taboada">
<meta name="robots" content="index, follow">
<meta name="revisit-after" content="2 days">
<meta name="author" content="Michael Taboada">
<meta name="contact_addr" content="webmaster@mtgames.org">
<title>Mtgames: games, news, and more!</title>
</head>
<body>
<!--#include virtual="includes/admin.html"-->
<br>
<h1>mtgames links and navigation:</h1>
<br>
<a href="games/index.shtml">Visit the games page.</a>
<br>
<a href="news/index.shtml">The news page</a>
<br>
<a href="credits/index.shtml">Credits and thanks</a>
<br>
<a href="links/index.shtml">Check out some interesting external links.</a>
<br>
<a href="twitter-mtgames/index.shtml">Visit the site for mtgames twitter updates</a>
<br>
<a href="twitter-michael-taboada/index.shtml">visit the site for my personal twitter updates</a>
<br>
<a href="twitter-dragons-moo/index.shtml">Click here for dragons moo twitter updates</a>
<br>
<a href="mailto:webmaster@mtgames.org">Email the webmaster</a>
<br>
<h1>Other hosted sites:</h1>
<br>
<a href="http://www.mtgames.org/forum/">mtgames forum</a>
<br>
<a href="http://www.mtgames.org/blog/">Mtgames blog</a>
<br>
<a href="http://ai5hf.mtgames.org/">The homepage of AI5HF</a>
<br>
<a href="http://moo.mtgames.org/">Moo homepage</a>
<br>
<a href="http://technologywizard.mtgames.org/">The website of the technology wizard</a>
<br>
<a href="http://troop5.mtgames.org/">The website of boyscout troop 5</a>
<br>
<a href="http://wasteyourtime.mtgames.org/">Sam's site for wasting your time!</a>
<br>
<a href="http://hunt.mtgames.org/">The website of hunt</a>
</body>
</html>


Now here is the output from the validator:

Quote

Validation Output: 34 Errors
list of 34 items
Error
Line 15, Column 4: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<br>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 17, Column 4: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<br>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 18, Column 28: document type does not allow element "A" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<a href="games/index.shtml">Visit the games page.</a>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 19, Column 4: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<br>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 20, Column 27: document type does not allow element "A" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<a href="news/index.shtml">The news page</a>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 21, Column 4: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<br>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 22, Column 30: document type does not allow element "A" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<a href="credits/index.shtml">Credits and thanks</a>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 23, Column 4: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<br>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 24, Column 28: document type does not allow element "A" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<a href="links/index.shtml">Check out some interesting external links.</a>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 25, Column 4: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<br>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 26, Column 38: document type does not allow element "A" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<a href="twitter-mtgames/index.shtml">Visit the site for mtgames twitter updates


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 27, Column 4: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<br>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 28, Column 46: document type does not allow element "A" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

…twitter-michael-taboada/index.shtml">visit the site for my personal twitter u


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 29, Column 4: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<br>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 30, Column 42: document type does not allow element "A" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

…ef="twitter-dragons-moo/index.shtml">Click here for dragons moo twitter updat


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 31, Column 4: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<br>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 32, Column 39: document type does not allow element "A" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<a href="mailto:webmaster@mtgames.org">Email the webmaster</a>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 33, Column 4: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<br>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 35, Column 4: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<br>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 36, Column 40: document type does not allow element "A" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<a href="http://www.mtgames.org/forum/">mtgames forum</a>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 37, Column 4: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<br>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 38, Column 39: document type does not allow element "A" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<a href="http://www.mtgames.org/blog/">Mtgames blog</a>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 39, Column 4: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<br>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 40, Column 36: document type does not allow element "A" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<a href="http://ai5hf.mtgames.org/">The homepage of AI5HF</a>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 41, Column 4: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<br>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 42, Column 34: document type does not allow element "A" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<a href="http://moo.mtgames.org/">Moo homepage</a>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 43, Column 4: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<br>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 44, Column 47: document type does not allow element "A" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

…ttp://technologywizard.mtgames.org/">The website of the technology wizard</a>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 45, Column 4: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<br>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 46, Column 37: document type does not allow element "A" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<a href="http://troop5.mtgames.org/">The website of boyscout troop 5</a>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 47, Column 4: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<br>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 48, Column 44: document type does not allow element "A" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<a href="http://wasteyourtime.mtgames.org/">Sam's site for wasting your time!</a>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 49, Column 4: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<br>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Error
Line 50, Column 35: document type does not allow element "A" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

<a href="http://hunt.mtgames.org/">The website of hunt</a>


The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous
element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

list end

I can't understand all of the errors, but there seems to be no reason for them anywhere there.
Sorry about lists not coming out as lists, and instead say8ing list end, I am doing this with a screen reader which does that on it's own.
Any help would be appreciated.
-Lilmike.
P.S. Anyone who wants to look at the file can look at it, I uploaded it as index.shtml

Is This A Good Question/Topic? 0
  • +

Replies To: valid html problems

#2 fonephixer  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 26
  • Joined: 21-February 09

Re: valid html problems

Posted 04 October 2009 - 02:26 PM

Try changing your <br> 's to <br />
Was This Post Helpful? 0
  • +
  • -

#3 kewlkreator  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 38
  • View blog
  • Posts: 1,065
  • Joined: 25-March 09

Re: valid html problems

Posted 04 October 2009 - 04:29 PM

W3C has an editor at the bottom that outputs suggested HTML. Try using that code that it gives and see if you get the same site. :)Attached Image

In the screenshot, my mouse points to the option to turn on the editor.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1