homepage Welcome to WebmasterWorld Guest from 54.226.191.80
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
HTML Validation
My site works just fine, but ...
Monkscuba




msg:962359
 10:02 am on Oct 29, 2002 (gmt 0)

Dear gurus,

I have just checked our index page with the validation tool on SEW. Well it shows a few errors that I don't really understand since I'm not really a webmaster, just a guy trying to make our site better.

It seems one of the holy rules of making a good web site is "Always validate your HTML". However, the page is indexed by google, comes up pretty high in searches, and will get better at this update. So just how important are these HTML errors. I guess I couldn't fix them without reading a very fat book or paying somebody. Do I really need to fix them?

Errors such as :

required attribute "TYPE" not specified <script language="JavaScript">

and

document type does not allow element "BODY" here ... il-to-us-rollover.jpg','images/faq-rollover.jpg')">

Certainly nothing that stops the page from loading or causes any errors that I can see.

Should I fix it and why?

 

ukgimp




msg:962360
 10:09 am on Oct 29, 2002 (gmt 0)

From my point of view it is worth doing and once you have it done you dont really have to bother with it again, especially if your site uses templates.

There is nothing to say that search eninges like Google wont use it as a part of their ranking algo. Chances are they wont do that until they get their own pages to validate :)

There is a chart somewhere in WebmasterWorld that shows that on the DMOZ validate, or thats how it was.

Some of the fixes are easy as well for example your java one

required attribute "TYPE" not specified <script language="JavaScript">

simply add the following

<script language="javascript" type="text/javascript">

Worth it in my opinion

Cheers

creative craig




msg:962361
 10:14 am on Oct 29, 2002 (gmt 0)

<script language="JavaScript" type="text/javascript">

This is what it should read for the JavaScript, HTML validation is an age old argument, I had a good one once with some one who's site was providing free HTML tutorials but had hundreds of HTML errors!

It is also good for forward compatability with the next generation of browsers that may be less tolerant to invalid HTML.

If you do a search on this site there will be a few good threads on the subject I know doubt :)

Craig

Nick_W




msg:962362
 11:01 am on Oct 29, 2002 (gmt 0)

In the short term it' probably not very important for you if your site works across browsers/platforms and has no SE trouble.

Looking to the future is different though. Forward compatibility will become a bigger issue of the next couple of years as XHTML becomes more widespread, and validation will ensure that as new versioins of browsers are realeased you can relax and not worry about it.

I suggest you validate, it's not really that tough. Also, get hold of the proper DOCTYPE for your page (html 4.01 Transitional / xhtml Transitional)

Nick

Monkscuba




msg:962363
 12:18 pm on Oct 29, 2002 (gmt 0)

I don't feel so bad after reading around some of the threads. If Google has HTML errors, then I won't worry. Plenty of time for me to read a fat book and actually learn how to do it. I ran the validator on a couple of competitors homepages and they were way worse than ours. I have only a couple of errors, while they had hundreds!

Errors:

there is no attribute "NAME" ... 'images/accommodation-rollover.jpg',1)"><img name="Image30" border="0"

document type does not allow element "BODY" here ... il-to-us-rollover.jpg','images/faq-rollover.jpg')">

Hey, and this page was written by a couple of amateurs! Not too bad!

g1smd




msg:962364
 7:29 pm on Oct 29, 2002 (gmt 0)

Also see [webmasterworld.com...] where I made my longest ever post on a forum anywhere about this subject [no point repeating all it again here].

andreasfriedrich




msg:962365
 7:39 pm on Oct 29, 2002 (gmt 0)

g1smd, if you want to reference a single message in a thread use a fragment identifier which is made up from the string "msg" and the msg # as displayed for each message. This will get you an URI like this:

[webmasterworld.com...]

Andreas

pageoneresults




msg:962366
 8:36 pm on Oct 29, 2002 (gmt 0)

> <script language="JavaScript" type="text/javascript">

There was a thread about this not too long ago where someone stated that you do not need the language attribute for the script tag (its deprecated). You can shorten it to...

<script type="text/javascript">

1milehgh80210




msg:962367
 6:27 am on Nov 9, 2002 (gmt 0)

after checking my site w/http://www.htmlvalidator.com/lite/?google=free+HTML+Validator, I checked some big boys

travelocity
amazon
orbitz.
TONS of errors on all! on other checkers too.
so guess they dont care?

g1smd




msg:962368
 7:34 pm on Nov 9, 2002 (gmt 0)

>> so guess they don't care? <<

Most probably, so if you do care then you will clean up when Internet Explorer 10 arrives and gives a "page cannot be displayed" message for any page that uses code that is not well-formed. Validation and correcting errors does not take very long to do. If you use proprietory Netscape or IE code extensions in your page then these will be flagged as errors. You can ignore these "errors", but you should not ignore any errors caused by wrongly nested, or missing tags. These should be fixed.

martinibuster




msg:962369
 8:29 pm on Nov 9, 2002 (gmt 0)

GoogleGuy stated a while back that they are lenient about coding errors. However, I think that the forward compatibility argument is a good argument. That and pride in your workmanship.

One of my clients was hyper about cross os compatibility and was mighty pleased to see the site function perfectly with NN 4.7, on all os's, even using a unix browser.

Funky code can lead to unpredictable display problems. I used to be afraid of validating but now I'm totally ok with it.

Using htmlKit helps to cleaning up the code, as it lists line by line the alt tags that need fixing, and one click takes you to the appropriate line in the code. A real timesaver. And it's free!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved