Welcome to WebmasterWorld Guest from 54.162.226.212

Forum Moderators: mademetop

Message Too Old, No Replies

Does incorrect HTML syntax affect ranking / spidering

Should this be corrected

     
8:14 pm on Aug 31, 2002 (gmt 0)

10+ Year Member



I recently did some SEO on a clients pages. They wanted to insert the optimized <titles><meta> tags etc, themselves so I emailed the code to them.

Well, they are inexperienced and incorrectly formatted like this:

<HTML>
<HEAD>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<TITLE>NPSGLOBAL -Retail Merchant Accounts Software and Services</TITLE>
</HEAD>

Notice the Doctype in the wrong place and the dual <HEAD> tags.

Will this negatively affect spidering or ranking on Google, Altavista??

Thanks
Craig

9:07 pm on Aug 31, 2002 (gmt 0)

10+ Year Member



Google is not too crazy about syntax errors. I don't know exactly what errors will stop Googlebot but I would definitely correct the errors that you have listed.

You should always validate your code regardless.

9:13 pm on Aug 31, 2002 (gmt 0)

10+ Year Member



yes it will.

i just did a test this week.

and i used the meta style tag that google likes.
my position on google improved significantly (#1)

so i think that it does deinitely affects google if you use the wrong type or have syntax errors.

you will never be excluded for having bad html on your page, but i won't help you much either

[edited by: ikbenhet1 at 9:20 pm (utc) on Aug. 31, 2002]

9:18 pm on Aug 31, 2002 (gmt 0)

10+ Year Member



I'm actually using a HTML validator as my primary HTML editor.

When I started using the validator it really amazed my how many stupid errors there where in my code. I guess that is only natural when you are high on coffee and beyond your bed time ;-)

9:32 pm on Aug 31, 2002 (gmt 0)

10+ Year Member



Thanks to all who replied. I will get them to correct
the syntax.

Craig

9:37 pm on Aug 31, 2002 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



it really amazed my how many stupid errors there where in my code

I'm with you on that one. I use Homesite and I've now developed a "validate button" reflex after I do any editing at all.

I wish that the page builders for many major sites would be required to do it as well. It's the stupid errors, copy/paste mistakes etc that can really do you in over time.

I'm certain that, although Googlebot can accommodate "some" errors, there are certain types of errors (like a missing ">"), and perhaps a threshhold of total errors as well, that make part or all of a page impossible for them to index.

6:14 am on Sep 2, 2002 (gmt 0)

10+ Year Member



>I'm certain that, although Googlebot can accommodate "some" errors, there are certain types of errors (like a missing ">"), and perhaps a threshhold of total errors as well, that make part or all of a page impossible for them to index.

I know for a fact that Googlebot can index very sloppy code. When I
created my site I knew nothing about HTML and thus made a huge amount
of mistakes. You can't imagine how much. But as my pages looked fine
I did not even know that anything was wrong. There was no spam or
anything like that, just very sloppy code. But apparently Googlebot had no problems in indexing and I got PR6 before I even knew that there were errors.

Recently I created another smaller site. Although my code was not
as sloppy as before I made one big error, the same one on
almost every page = a missing ">". Googlebot indexed the site before
I managed to correct it. But again: the bot had no problems and the
site got PR5.

I am eternally grateful for Google for not penalizing us novices
for coding errors we make.

Katarina

4:37 pm on Sep 2, 2002 (gmt 0)

10+ Year Member



When you talk about:

"and i used the meta style tag that google likes.
my position on google improved significantly (#1"

1. Is this just the standard meta tag stuff, or something special?

2. I typically use the "Clean up HTML" command in Dreamweaver. For Dreamweaver experts, does this clean up any html mistakes I've made?

4:51 pm on Sep 2, 2002 (gmt 0)

10+ Year Member



google wil craw this best:

<meta http-equiv="content-type" content="text/html; charset=UTF-8">

after head and html.

you don't need the <!doctype statement for google.

[edit removed some lines]

8:25 pm on Sep 2, 2002 (gmt 0)

10+ Year Member



> I typically use the "Clean up HTML" command in Dreamweaver. For Dreamweaver experts, does this clean up any html mistakes I've made?

This cleans up some obvious stuff like nested or empty tags etc., but doesn't come close to catching the stuff that a "real" page validator will.

9:37 pm on Sep 2, 2002 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month




>> you don't need the <!doctype statement for google.

No, you only need it to send your code to the validator, and to tell the browser what type of document is going to be served.

I would update the doctype statement from <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> to the newer version <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> as the earlier one is obsolete.

10:51 pm on Sep 2, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm actually using a HTML validator as my primary HTML editor.

How can you use a validator, i.e. a program that checks your HTML code against some DTD, use as an editor? Or are you using some editor that checks your code while you enter it just like words spell checker does? That would be a nice feature, although Im not sure whether constantly checking against the DTD would make the editor too slow.

10:59 pm on Sep 2, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



google will crawl this best:
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

Im wondering if it matters whether you include the content-type in the HTML document or send it in the HTTP header?

11:15 pm on Sep 2, 2002 (gmt 0)

10+ Year Member



note, that google does not use the <!doctype for any of it's pages. they use only tha meta type tag after head and html, on their own pages.

i like to beleive google knows better.

12:14 am on Sep 3, 2002 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



The issue with missing a ">" is not that the page will necesarily get skipped altogether. The issue with code like this:

<p keyword1 sentence, well written copy, etc.
<p> keyword2 paragraph with more choice content.

... is that the "keyword1" sentence looks like part of the tag - like a tag attribute. So the words in the "keyword1" sentence probably won't be included in the algo's computations, even though the page itself will be indexed.

Once a spider sees a correct tag further along in the page, then it's back on course. So, the keyowrd2 paragraph would make it.

2:33 pm on Sep 3, 2002 (gmt 0)

10+ Year Member



Thank you, Tedster. A good clarification about the missing ">".

Could someone please explain the "charset" part in this:
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

Is it OK only for pages in English? Or for other languages too?

I tried site search but encountered a problem with some "validator" threads (not in other threads):
I saw the page but before I could read it, the browser changed it into an error message. I tried it several times but the result was always the same. Has anyone else experienced this? I have had no problems with my computer or with my browser otherwise.

Katarina

3:06 pm on Sep 3, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



UTF stands for Unicode Transformation Formats and describes the different methods that are used to represent the 40.000+ elements that are defined in the Universal Character Set (Unicode) in 8/16 bits. For more indepth info have a look at [czyborra.com ].

UTF is the standard encoding for XML files. When editing your XHTML files you need to be aware of the incompatibility with the ISO-8859-1 (Latin1) encoding.

5:21 am on Sep 4, 2002 (gmt 0)

10+ Year Member




Thank you, andreasfriedrich, I got all the information I need. An excellent reference!

And thank you all! You know so much and are so helpful that it is a delight to read your messages. I know no other place where one would learn as much as here.

Katarina

 

Featured Threads

Hot Threads This Week

Hot Threads This Month