|
Posted by Big Bill on 04/02/06 02:14
On Sat, 01 Apr 2006 22:42:50 GMT, Stephen Kay
<sk@karma-lab.nospam.com> wrote:
>in article os6dnf-A8tscGbPZnZ2dnUVZ_vudnZ2d@comcast.com, Jerry Stuckle at
>jstucklex@attglobal.net wrote on 4/1/06 8:45 AM:
>
>> No, multiple <head> and <body> tags in a document are invalid.
>>
>> include() effectively just does a "copy and paste" of the new file into the
>> existing one. So if both files have <body> tags then you end up with two
>> <body>
>> tags, as you found.
>>
>> And it's time to fire the idiots who places these tags in included files!
>
>
>Related to this question, I am changing a previously "all HTML" site into a
>"dynamically displayed by php" site. So I now have a template file with a
>header, footer, navbar, etc., and when you call one of the old pages, Apache
>redirects it into a dopage.php?p=page.html format, and the old page is read
>in to a $content variable, and displayed inside the template. Pretty
>straightforward.
>
>However, since all of the old pages (and there's a lot of them) were HTML
>standalones, they all have headers, html tags, and body tags.
>
>At the moment, it seems to be working fine, even with the extra html,
>header, and body tags displayed in the middle of the page, nested inside the
>"real" html and body tags.
>
>I assume this is a no-no, but what are the problems with just leaving it
>this way?
Semantically it'll be a mess and the search engines may well have
trouble determining the nature of the content. That's the SEO point of
view. It's why I'm trying to get rid of the anomalies in the ones I've
been handed.
> It seems to be working anyway.
It displays ok, yeah, so do mine.
> Otherwise, I assume the options are
>to rewrite every single page to remove this stuff,
You don't want to remove the info that's in some of the tags, you need
to keep the individual title tags and description tags, they're there
for a reason.
> or to try and remove it
>procedurally after reading it into the $content variable.
Going from my brief intro to php, I dunno! I have a long enough night
ahead of me as it is!
BB
--
http://www.kruse.co.uk/seo-articles.htm
http://www.here-be-posters.co.uk/motivational-posters-sitemap.htm
http://www.crystal-liaison.com/crystal-world/index.html
Navigation:
[Reply to this message]
|