Forum Moderators: open

Message Too Old, No Replies

html validation error not sure how to fix

         

glamorouscreations

10:45 pm on Apr 12, 2008 (gmt 0)

10+ Year Member



ive been trying all day to fix this error below and i cant and i dont know how to do css yet im going to invest in some css beginner books and stuff but for now is there a diff way to fix this....please help me

Line 12, Column 58: there is no attribute "BACKGROUND".
<table border="0" width="85%" cellspacing="0" BACKGROUND=fantasy9bk5.jpg cellpadding="25">

thecoalman

11:01 pm on Apr 12, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Look up the background property here: [w3schools.com...]

To use it within the HTML:

<table border="0" width="85%" cellspacing="0" style="background: url(fantasy9bk5.jpg);" cellpadding="25">

However you should research how to do it with a class in externally linked stylesheet.

glamorouscreations

11:18 pm on Apr 12, 2008 (gmt 0)

10+ Year Member



ok got that 1 fixed that u now it came up with this one so is this the same as what u said or diff code needed. thank you

Line 36, Column 73: there is no attribute "BACKGROUND".
…="0" CELLPADDING="1" WIDTH="45%" BACKGROUND="fantasy9bk3.jpg">

glamorouscreations

11:22 pm on Apr 12, 2008 (gmt 0)

10+ Year Member



i went to preview it man it has my edges all screwed up , way to wide

glamorouscreations

11:36 pm on Apr 12, 2008 (gmt 0)

10+ Year Member



i got them all fixed i wanna thank you for your help

glamorouscreations

4:19 pm on Apr 15, 2008 (gmt 0)

10+ Year Member



i got more errors can someone please help me fix these.....

errors are as follows
Line 96, Column 66: reference not terminated by REFC delimiter .

…y Designed By Glamorous Creations, Copyright (&#169-2008-2009)</p> error

If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.

Line 182, Column 4: end tag for "ul" which is not finished .

</ul> error

Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.

Line 96, Column 66: XML Parsing Error: CharRef: invalid decimal value .

…y Designed By Glamorous Creations, Copyright (&#169-2008-2009)</p> error

Line 96, Column 66: XML Parsing Error: xmlParseCharRef: invalid xmlChar value 0 .

…y Designed By Glamorous Creations, Copyright (&#169-2008-2009)</p> error

thank you id like some help fixes these.

tedster

11:43 pm on Apr 15, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yoursource code forgets the semi-colon at the end of &#169 several times - the error text you pasted in describes it. Once you begin declaring an entity by using an ampersand, then that entity needs to be termnated with a semi-colon.

The ul error is also described in the error text - your code has something wrong between the <ul> and the </ul> tags - either it forgets to close some tag that was opened after the <ul>, or possibly it doesn't have any <li> elements at all.

glamorouscreations

10:34 am on Apr 16, 2008 (gmt 0)

10+ Year Member



thank you.....but i ended up with more errors , why do i have to use the balidator thing its useless. and its alot of trouble for most.....
i added a counter and some html links yesterday now i got 24 errors do i need to paste those for help on fixing?
thank you

penders

11:57 am on Apr 16, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



...why do i have to use the balidator thing its useless.

Well, it does tell you if there are any errors, and with a bit of experience it pretty well tells you exactly where that error might be and why.

If there are errors in your source then you could well have problems rendering your site cross browser. It's difficult to test in all browsers under the sun; ensuring there are no errors is a good start. Certainly, if you do have rendering issues (may be just in some browsers) then making sure there are no errors is the very first thing to do.

For instance, you are lucky that most browsers are interpreting your &#169 ok, since you are following it with a non-numeric character '-'. But, if you wanted this to come immediately before the '2008' you would have problems, having missed the trailing semi-colon ';'. What if the text that came after the &#169 was dynamically pulled from a DB (as many people do seem to update there copyright information each year)?

rocknbil

3:49 pm on Apr 16, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



.... why do i have to use the balidator thing its useless. and its alot of trouble for most.....

It's already shown you how useful it is. You learned that when you use an entity, it must begin with & and end with ;, right?

Another thing about the W3C validator is that errors can cascade. You may only have one error but that one causes it to misinterpret elements farther down the page that are NOT errors. So hit the first ones, look for other suspects, and revalidate.

Stick with it, years from now when someone looks at your pages, they will have less to pick at to say what's wrong with it. :-)