Forum Moderators: open
I know it has been discussed in the past on whether search engine spiders only read so far down a document. Do they skip blank lines, or count them?
Also, when I drag over the blank lines, it appears to be highlighting hidden text. Any one have any idea if any of this matters?
Spaces. Your CFML code has something that's generating spaces when the CF Server parses the page.
As for what the spiders see - I don't believe they'll be a problem. But I'm no expert on SEs.
>>I know it has been discussed in the past on whether search engine spiders only read so far down a document. Do they skip blank lines, or count them?
They would "count them" in respect of file size. I'm not sure whether hard line breaks are 1 byte or 2 bytes, but nonetheless they make file sizes bigger.
Also, people in here have mentioned that it is better to have a high "content to code ratio". No doubt empty space and line breaks will count as "code".
In regards to the software, what is the hiddent text that is shown that "should not" be there?
I can only speak for PHP, JSP, ASP and CFML - but it's basically a result of having stuff like this in your HTML:-
<%
// server-side code
%>
<xmlStyle:magicMarkupTag/>
<%
// more server-side code
%>
<xmlStyle:anotherMagicMarkupTag/>
<html>
<head>
...etc.
What you will notice in the above is that there are newline chars (CR/LFs) appearing outside of the server-side code sections (or CF/XML markup), ie: after the '%>' tokens, and after the '/>' tokens.
This whitespace was probably put there by you, to enhance readability and maintainability at development time - a very good practise in itself.
When the ASP/JSP/PHP/etc parser that interprets the page, it removes what it recognises as code (and otherwise, um, 'executes the page') you are left with the stuff that was between the code sections -- including any terminating newlines -- which are often overlooked when seen on their own (in ones, twos and threes), or at the end of lines of text.
(This still throws me out sometimes though: there's nothing more puzzling than choosing 'View Source' only to see an empty window when you were expecting to see a load of HTML!! ..and then I remember to scroll down!! ;) )
hth
<%
// server-side code
%><xmlStyle:magicMarkupTag/><%
// more server-side code
%><xmlStyle:anotherMagicMarkupTag/><html>
<head>
or
<%
// server-side code
%><xmlStyle:magicMarkupTag
/><%
// more server-side code
%><xmlStyle:anotherMagicMarkupTag
/><html>
<head>
..but I bet you already knew that! :)
there's nothing more puzzling than choosing 'View Source' only to see an empty window when you were expecting to see a load of HTML!!
<!-- SSI Error: Source code not available -->
Often, people who are dumb enough to want to steal your source code are dumb enough to be taken in by this trick.
I'm not sure whether hard line breaks are 1 byte or 2 bytes