Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Validation Error - HTML
Old 10-22-2005, 10:28 PM Validation Error - HTML
Webmaster Talker

Posts: 626
Trades: 0
I have just finished my web page and (I think) it looks good. However, as I am trying to optimize it... I have run it through some HTML validators and am getting a TON of errors. I don't understand the error messages though.

If I can get some feedback, I would appreciate it!

Last edited by jim.thornton; 12-15-2005 at 07:26 PM..
jim.thornton is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-22-2005, 11:01 PM
lil_cat_luver's Avatar
Skilled Talker

Posts: 57
Location: Canada
Trades: 0
I think it would help if you posted what type of errors you're getting, or just post the url of the validation. And you might consider using CSS.
lil_cat_luver is offline
Reply With Quote
View Public Profile Visit lil_cat_luver's homepage!
 
Old 10-23-2005, 05:18 PM
OmuCuSucu's Avatar
Vi Veri Veniversum Vivus

Posts: 1,168
Name: Dragos-Valentin
Location: Cluj-Napoca, RO
Trades: 0
could you post the errors you get on validation? or at least a link to the page online so we could check it easier?

you are really asking for a lot of work by the way you are asking for help

thank you
__________________
.
» Please remember to add to my Talkupation if you enjoyed my post. Thank you :)
.
OmuCuSucu is offline
Reply With Quote
View Public Profile
 
Old 10-24-2005, 01:56 PM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
The errors I get with one validator is that your IDs "Page","banpic", "menulink" and "menulinklast" are defined for mor ethat one element. Technically an ID should only reference one element, if you're defining more than one element use a class selector (.page, .banpic, not #page, #banpic etc) and your input
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 10-24-2005, 07:20 PM
lil_cat_luver's Avatar
Skilled Talker

Posts: 57
Location: Canada
Trades: 0
This is what I'm guessing, on your stylesheet, did you define those as

.page
.banpic

Or as:

#page
#banpic

If it's the former, use class="page" if it's the latter, use id="page"
lil_cat_luver is offline
Reply With Quote
View Public Profile Visit lil_cat_luver's homepage!
 
Old 10-25-2005, 12:35 AM
Webmaster Talker

Posts: 626
Trades: 0
First, the validator I have tried is: http://validator.w3.org/

Second, the error I have been getting is:

Fatal Error: cannot find "http:/www.w3.org/TR/html4/loose.dtd"; tried
I could not parse this document, because it makes reference to a system-specific file instead of using a well-known public identifier to specify the type of markup being used.

You should place a DOCTYPE declaration as the very first thing in your HTML document. For example, for a typical XHTML 1.0 document:
Code:
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
        <head>
          <title>Title</title>
        </head>

        <body>
          <!-- ... body of document ... -->
        </body>
      </html>
For XML documents, you may also wish to include an "XML Declaration" even before the DOCTYPE Declaration, but this is not well supported in older browsers. More information about this can be found in the XHTML 1.0 Recommendation.


**********

If I go to the following website and enter my info and submit it... It comes back with ZERO HTML errors however it says that there is a 97% browser in-compatibility. Even with simple tags like IMG and TD.

http://www.netmechanic.com/toolbox/html-code.htm

Hopefully this works but here is a link to the results:

http://r.netmechanic.com/toolbox/sum...anic&fv=5&ft=3
jim.thornton is offline
Reply With Quote
View Public Profile
 
Old 10-25-2005, 01:47 AM
lil_cat_luver's Avatar
Skilled Talker

Posts: 57
Location: Canada
Trades: 0
Well clearly, you've been putting the wrong code for your doctype.

Here's yours:
<!DOCTYPE HTML PUBLIC "-/W3C/DTD HTML 4.01 Transitional/EN"
"http:/www.w3.org/TR/html4/loose.dtd">

Here's what it's supposed look like:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

As for the netmechanic browser compatibility results, it's probably because of the id/class problem that W3C has pointed out. For the <td> and <img> tags, I'm not sure what's the problem...maybe someone else here knows
lil_cat_luver is offline
Reply With Quote
View Public Profile Visit lil_cat_luver's homepage!
 
Old 10-26-2005, 09:17 AM
Webmaster Talker

Posts: 626
Trades: 0
Nice catch on the doctype, I couldn't figure out why I was getting that error... I must have accidentally changed that when I did a find/replace for my paths.

I tested with W3C again after that and there were NO problems with the HTML.

I tested the netmechanic again and still I am getting 79 browser compatibility errors and I cannot figure out why... I have used similar coding tags and such on other sites and I have never had a problem. Can someone goto www.lowermypayments.ca and tell me if it seems to appear properly in their browser?

Zinc.
jim.thornton is offline
Reply With Quote
View Public Profile
 
Old 10-26-2005, 09:39 AM
Ultra Talker

Posts: 255
Location: NY
Trades: 0
Ha, rats, I just entered your page into the validator and after 'fixing' the doctype and a few cl***es you had wrong, it validated nicely. Oh well, ya beat me to it!! (I always find it good practice to try and solve problems, keeps me on my toes). Although most of the time someone beats me in posting the solutions.

Anyway, with that out of the way, I checked out your site in IE, Opera, Netscape and Firefox and your site came up great in all of them with no deviations.

Just my 2 cents,
DianeD
DianeD is offline
Reply With Quote
View Public Profile Visit DianeD's homepage!
 
Old 10-27-2005, 12:54 AM
Webmaster Talker

Posts: 626
Trades: 0
Thank DianeD... I appreciate you taking the time to look at it.

If DianeD is saying it is shows nicely in all browsers does anyone know why it would show up at Netmechanic as a non-compatible browser??

Zinc.
jim.thornton is offline
Reply With Quote
View Public Profile
 
Old 10-27-2005, 07:46 PM
lil_cat_luver's Avatar
Skilled Talker

Posts: 57
Location: Canada
Trades: 0
The problem is probably with Netmechanic, not with your site. I don't think you should worry too much about it
lil_cat_luver is offline
Reply With Quote
View Public Profile Visit lil_cat_luver's homepage!
 
Old 10-28-2005, 01:10 AM
Webmaster Talker

Posts: 626
Trades: 0
okay...

Thank you everyone!
jim.thornton is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Validation Error - HTML
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.45484 seconds with 12 queries