Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ Missing lines in table

Posted by: denmarks Jul 7 2011, 12:26 PM

Sometimes when I display this page
http://dmmarks.com/hawaii.html
a few of the right outside lines on the table do not appear.
A refresh of the page fixes it. What could cause that?

Posted by: Darin McGrew Jul 7 2011, 12:50 PM

I didn't notice the problem you described, but the online tools report markup and CSS errors, including some structural problems:
http://htmlhelp.com/cgi-bin/validate.cgi?url=http%3A%2F%2Fdmmarks.com%2Fhawaii.html&warnings=yes
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fdmmarks.com%2Fhawaii.html&profile=css21&usermedium=all&warning=1&vextwarning=&lang=en

Posted by: denmarks Jul 7 2011, 01:08 PM

QUOTE(Darin McGrew @ Jul 7 2011, 10:50 AM) *

I didn't notice the problem you described, but the online tools report markup and CSS errors, including some structural problems:
http://htmlhelp.com/cgi-bin/validate.cgi?url=http%3A%2F%2Fdmmarks.com%2Fhawaii.html&warnings=yes
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fdmmarks.com%2Fhawaii.html&profile=css21&usermedium=all&warning=1&vextwarning=&lang=en


I have changed the <img ...> to <img ... /> and <br> to <br />.
Most of the others are false errors or things that don't really matter.

Posted by: Darin McGrew Jul 7 2011, 03:04 PM

CODE
Error: character ï not allowed in prolog
This looks like an extraneous BOM, but regardless, it can throw browsers into quirks mode:
http://hsivonen.iki.fi/doctype/

CODE
Error: element a not allowed here; possible cause is an inline element containing a block-level element
This is a structural problem, and occurs several times. You're missing some closing </a> tags.

CODE
The maximum number of errors was reached. Further errors in the document have not been reported.
There are probably more errors (including structural errors) but the validator won't report them until you fix the other errors.

Posted by: denmarks Jul 7 2011, 03:44 PM

QUOTE(Darin McGrew @ Jul 7 2011, 01:04 PM) *

CODE
Error: character ï not allowed in prolog
This looks like an extraneous BOM, but regardless, it can throw browsers into quirks mode:
http://hsivonen.iki.fi/doctype/

CODE
Error: element a not allowed here; possible cause is an inline element containing a block-level element
This is a structural problem, and occurs several times. You're missing some closing </a> tags.

CODE
The maximum number of errors was reached. Further errors in the document have not been reported.
There are probably more errors (including structural errors) but the validator won't report them until you fix the other errors.


Thank you for your help. I have fixed many of the important errors. I can not understand the first error. That is not in the HTML source.
EDIT: I have fixed the first error. I was defining the page as UTF8 which was not needed.

Posted by: denmarks Jul 7 2011, 04:16 PM

Is there a replacement for the marquee command which the validator does not like?

Many of the errors refer to links that I have copied from other sites. For example there are links to Princess.com for each city. There is no way to change them.

The page displays fine in IE and Firefox so does it really matter if I fix the minor errors?

Posted by: Darin McGrew Jul 7 2011, 09:00 PM

The marquee element isn't in any public (X)HTML specification before HTML 5. But IMHO marquee should be avoided anyway.

To fix the errors in the links, see:
http://htmlhelp.com/tools/validator/problems.html.en#amp

Posted by: pandy Jul 7 2011, 11:27 PM

QUOTE(denmarks @ Jul 7 2011, 10:44 PM) *

Thank you for your help. I have fixed many of the important errors. I can not understand the first error. That is not in the HTML source.
EDIT: I have fixed the first error. I was defining the page as UTF8 which was not needed.


It is, but you don't see it. You have probably used an editor that insists on inserting a BOM (Byte Order Mark) even though it isn't needed for UTF-8.
http://www.w3.org/International/questions/qa-byte-order-mark

You seem to have gotten rid of it now anyhow. But for the future, see if you can make your editor not insert it in the first place or consider another editor.

Posted by: pandy Jul 7 2011, 11:29 PM

Heh, I didn't read your last sentence even though I quoted it. blush.gif tongue.gif

Anyhow, you should be able to save as UTF-8. Most editors don't use a BOM for that.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)