Forum Moderators: open

Message Too Old, No Replies

Line breaks in code - bad for spiders?

         

Rischen

4:30 pm on Feb 21, 2005 (gmt 0)

10+ Year Member



Hi,

Is it true that search robots don't like line breaks in html code. I read somewhere that they see it as bad coding.

Do they not like this kind of coding--

<html>
<body>

<div id="content">

<h1>My Site</h1>

<p>Gold silver platinum</p>

<p>Onyx amethyst ruby</p>
</div>

<div id="links">

<img src="images/image1.gif" />
<img src="images/image2.gif" />
</div>

Should it be--

<html>
<body>
<div id="content">
<h1>My Site</h1>
<p>Gold silver platinum</p>
<p>Onyx amethyst ruby</p>
</div>
<div id="links">
<img src="images/image1.gif" />
<img src="images/image2.gif" />
</div>

Thanks,

Rischen

Purple Martin

4:18 am on Feb 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Short answer: Don't worry about it.

Longer answer: It won't make any difference to how they read the HTML, so they will still process the page in the same way. It does add a few return characters, and so it slightly increases the total page size (and therefore slightly decreases the code to content ratio). The effect of this would be so small as to be unnoticeable.