Click to See Complete Forum and Search --> : Error Question...


thejoker101
03-18-2003, 11:17 AM
I ran my page through the W3C's markup validator and i got this error:

Line 139, column 3: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag
<br><br>test
^
Line 139, column 7: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag
<br><br>test
^
Line 139, column 8: character data is not allowed here
<br><br>test


The link for the page is here:
http://www.geocities.com/manhattanseniors/test/

I don't see anything wrong with putting something on the bottom there, but maybe I'm missing something.

vickers_bits
03-18-2003, 11:29 AM
maybe it's looking for <br />

thejoker101
03-18-2003, 11:32 AM
I could see that if i was writing it in xhtml, but it's just html 4.01 strict. so it shouldn't need the end / in the <br>

thejoker101
03-19-2003, 03:41 PM
The question above is still plaguing me, but I also have another problem. Here is the link to the validator content: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.geocities.com%2Fmanhattanseniors%2Ftest%2Fcalendar.html

in this problem i'm getting an error message for end tags not having beggining tags. Problem is that they are there, and it's in a javascript, so it shouldn't be checking that part anyways.

Perhaps this is just me misinterpreting the html 4.01 strict, maybe i'm not allowed to do this, perhaps?

nkaisare
03-19-2003, 05:00 PM
<br> should be placed in a block-level element like div, td, h#, p etc.

<p>Blah blah<br>blah blah</p><br>

<br>: valid
<br>: invalid