473,788 Members | 2,692 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

body tags in an include?

http://www.promcars.co.uk/pages/bonnie.php

I don't believe they should be there, can I take them out without
stopping the includes from functioning? I'm the (hapless) optimiser on
this one... I have to correct where they've spelled my name wrong
too...sigh...

BB
--

http://www.kruse.co.uk/seo-articles.htm
http://www.here-be-posters.co.uk/mot...rs-sitemap.htm
http://www.crystal-liaison.com/crystal-world/index.html

Apr 1 '06 #1
23 3101
Big Bill wrote:
http://www.promcars.co.uk/pages/bonnie.php

I don't believe they should be there, can I take them out without
stopping the includes from functioning? I'm the (hapless) optimiser on
this one... I have to correct where they've spelled my name wrong
too...sigh...

BB


Body tags (or any tags for that matter) have nothing to do with whether an
include functions or not.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Apr 1 '06 #2
I'm a php newbie so take it with a grain of salt, but I put my body tag
in my header.inc file and functions perfectly. All that matters is
where the body tag ends up in the final generated HTML code.

--gary

Apr 1 '06 #3
"Big Bill" <kr***@cityscap e.co.uk> wrote:
http://www.promcars.co.uk/pages/bonnie.php
I don't believe they should be there, can I take them out without
stopping the includes from functioning? I'm the (hapless) optimiser
on this one... I have to correct where they've spelled my name
wrong too...sigh...


Bill, look at it this way...

If every page has the same image at the top of the screen, the same
menu on the left of the screen, and then they have the same opening
<div class="maincont ent"> tag, the best way to handle this is how?
Furthermore, if they ALL have the same <link > tag including the
same CSS file, the same javascript include tags, why not create one
file and just include it after inserting the

<title>,
<meta name="keywords" ...
<meta name="descripti on" ...

and they all will contain the same things here, unless you dynamically
load the left menu, topmenu items, et al. And even then, the included
file could identify which page gets loaded, and dim out the appropriate
menu items.

</head>
<body><div id="topbanner"> ...</div>
<div id="leftmenu">. ..</div>
<div id="maincontent ">

tags. Furthermore, if each page reads it's keywords and description
and title from a database, you could configure it all inside one include
file, and use the page name/folder/or whatever to identify which record
to load and your whole presentation could come from a database.

Jim Carlock
Post replies to the group.
Apr 1 '06 #4
On Sat, 01 Apr 2006 05:14:54 GMT, "Jim Carlock" <an*******@127. 0.0.1>
wrote:
"Big Bill" <kr***@cityscap e.co.uk> wrote:
http://www.promcars.co.uk/pages/bonnie.php
I don't believe they should be there, can I take them out without
stopping the includes from functioning? I'm the (hapless) optimiser
on this one... I have to correct where they've spelled my name
wrong too...sigh...


Bill, look at it this way...

If every page has the same image at the top of the screen, the same
menu on the left of the screen, and then they have the same opening
<div class="maincont ent"> tag, the best way to handle this is how?
Furthermore, if they ALL have the same <link > tag including the
same CSS file, the same javascript include tags, why not create one
file and just include it after inserting the

<title>,
<meta name="keywords" ...
<meta name="descripti on" ...

and they all will contain the same things here, unless you dynamically
load the left menu, topmenu items, et al. And even then, the included
file could identify which page gets loaded, and dim out the appropriate
menu items.

</head>
<body><div id="topbanner"> ...</div>
<div id="leftmenu">. ..</div>
<div id="maincontent ">

tags. Furthermore, if each page reads it's keywords and description
and title from a database, you could configure it all inside one include
file, and use the page name/folder/or whatever to identify which record
to load and your whole presentation could come from a database.

Jim Carlock
Post replies to the group.


Perhaps I should have put "Multiple body tags in one page due to php
includes using them, one pair per include". Is that any clearer?
That's the problem the page has if you look at it, multiple instances
of the body tag. I don't believe they should be there as obviously an
include shouldn't need to be topped and tailed with a body tag if it's
one of several includes in an existing page with its own body tags
anyway.

BB
--

http://www.kruse.co.uk/seo-articles.htm
http://www.here-be-posters.co.uk/mot...rs-sitemap.htm
http://www.crystal-liaison.com/crystal-world/index.html

Apr 1 '06 #5
"Big Bill" <kr***@cityscap e.co.uk> wrote:
Perhaps I should have put "Multiple body tags in one page
due to php includes using them, one pair per include". Is that
any clearer?


There's only supposed to be one <head> section and only one
<body> section in any document. Including more than one of
either/or (1) throws a browser into quirks mode, (2) creates an
invalid document, (3) makes debugging harder, (4) adds more
unnecessary content to the page, making the page bigger, which
in turn slows down the delivery of the page and (5) it serves no
purpose.

I see no reason for placing multiple <body> tags in any HTML
document.

Hope that helps.

Jim Carlock
Post replies to the group.
Apr 1 '06 #6
Big Bill wrote:
On Sat, 01 Apr 2006 05:14:54 GMT, "Jim Carlock" <an*******@127. 0.0.1>
wrote:

"Big Bill" <kr***@cityscap e.co.uk> wrote:
http://www.promcars.co.uk/pages/bonnie.php
I don't believe they should be there, can I take them out without
stopping the includes from functioning? I'm the (hapless) optimiser
on this one... I have to correct where they've spelled my name
wrong too...sigh...


Bill, look at it this way...

If every page has the same image at the top of the screen, the same
menu on the left of the screen, and then they have the same opening
<div class="maincont ent"> tag, the best way to handle this is how?
Furthermore , if they ALL have the same <link > tag including the
same CSS file, the same javascript include tags, why not create one
file and just include it after inserting the

<title>,
<meta name="keywords" ...
<meta name="descripti on" ...

and they all will contain the same things here, unless you dynamically
load the left menu, topmenu items, et al. And even then, the included
file could identify which page gets loaded, and dim out the appropriate
menu items.

</head>
<body><div id="topbanner"> ...</div>
<div id="leftmenu">. ..</div>
<div id="maincontent ">

tags. Furthermore, if each page reads it's keywords and description
and title from a database, you could configure it all inside one include
file, and use the page name/folder/or whatever to identify which record
to load and your whole presentation could come from a database.

Jim Carlock
Post replies to the group.

Perhaps I should have put "Multiple body tags in one page due to php
includes using them, one pair per include". Is that any clearer?
That's the problem the page has if you look at it, multiple instances
of the body tag. I don't believe they should be there as obviously an
include shouldn't need to be topped and tailed with a body tag if it's
one of several includes in an existing page with its own body tags
anyway.

BB


Bill,

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!

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Apr 1 '06 #7
On Sat, 01 Apr 2006 08:31:49 GMT, "Jim Carlock" <an*******@127. 0.0.1>
wrote:
"Big Bill" <kr***@cityscap e.co.uk> wrote:
Perhaps I should have put "Multiple body tags in one page
due to php includes using them, one pair per include". Is that
any clearer?


There's only supposed to be one <head> section and only one
<body> section in any document. Including more than one of
either/or (1) throws a browser into quirks mode, (2) creates an
invalid document, (3) makes debugging harder, (4) adds more
unnecessary content to the page, making the page bigger, which
in turn slows down the delivery of the page and (5) it serves no
purpose.

I see no reason for placing multiple <body> tags in any HTML
document.


Me neither. I have to educate the webmaster, it seems.

BB
--

http://www.kruse.co.uk/seo-articles.htm
http://www.here-be-posters.co.uk/mot...rs-sitemap.htm
http://www.crystal-liaison.com/crystal-world/index.html

Apr 1 '06 #8
On Sat, 01 Apr 2006 08:45:38 -0500, Jerry Stuckle
<js*******@attg lobal.net> wrote:
Perhaps I should have put "Multiple body tags in one page due to php
includes using them, one pair per include". Is that any clearer?
That's the problem the page has if you look at it, multiple instances
of the body tag. I don't believe they should be there as obviously an
include shouldn't need to be topped and tailed with a body tag if it's
one of several includes in an existing page with its own body tags
anyway.

BB


Bill,

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!


Ah, little problem there, you see, it was he who suggested that I be
hired for the optimisation... he has done some stuff in the past I've
worked on that has had great visual appeal but he does need to be
pulled up on a few things.

BB
--

http://www.kruse.co.uk/seo-articles.htm
http://www.here-be-posters.co.uk/mot...rs-sitemap.htm
http://www.crystal-liaison.com/crystal-world/index.html

Apr 1 '06 #9

Me neither. I have to educate the webmaster, it seems.


I would be questing him as a web master if he is using multipal <body>
tags within his documents. Actually I would be running in the opposite
direction from him.

Apr 1 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1482
by: charlie | last post by:
We have an unusual situation at the USC School of Medicine; we have to covert every Web page to a template. The template is too wide to print and a lot of our students print lectures, notes, etc. We thought we could keep to the template and draw in the content from other files by using includes. BUT these files are HTML files and therefore, have Body commands in them. If this could work, we could put a printable link back to the other page...
3
1789
by: Dave | last post by:
Hi Is specifying attributes (basic font size, colour etc) with a "body" tag in a style sheet as good as putting those things in a basic "p" tag for the sheet? If the answer is that using "p" rather than "body" is more reliable, how do you specify the page background colour in css? Is it true that to meet official standards all css sheets should be presented in
12
2996
by: tshad | last post by:
I am not sure why I am getting this error: I have the following code I want to run from another include file that holds all my functions. functions.inc ************************************************************************************ <Script runat="Server"> Sub fnHeader(client As String) response.write("<!-- #include file = ../includes/staffingHeaders.inc -->")
2
1265
by: John Buell | last post by:
When I generate an html email to send via SmtpMail, it will (apparently) randomly remove a period in the filename for some image and anchor tags, but not all For example, in the email body, i may have an image <img border="0" src="http://servername/filename.gif" But it will be received in Outlook as <img border="0" src="http://servername/filenamegif" NOTE THE MISSING PERIOD IN THE FILENAME The same thing can occur for an anchor tag...
5
2086
by: Big Bill | last post by:
http://www.promcars.co.uk/pages/rebecca.php this is not the way it's supposed to be, is it... ok then for me just to remove the body tags from the include files, it'll all work ok? I don't know php and I'm working with a webmaster who, I suspect, doesn't know it too well either. BB --
3
2959
by: Water Cooler v2 | last post by:
Questions: 1. Can there be more than a single script block in a given HEAD tag? 2. Can there be more than a single script block in a given BODY tag? To test, I tried the following code. None of the script gets executed. Can someone please give me a direction as to what I may be missing? Thanks.
2
2070
by: hon123456 | last post by:
Dear all, I want to know the difference and effect of placing ASP Code in the begining of .asp File and placing code inside <Head</ HeadTag and Placing code inside <body></bodytag. Just as follows: 1. Placing code in the Begining of asp file <% Response.write "Hello" %>
4
2486
by: AAaron123 | last post by:
<body runat="server" id="MainBody"> <form id="form1" runat="server" style="background-color:green; width: 100%; height: 100%"> <br /> Table1" runat="server" Style="background-color:Yellow; width: 100%; height: 90%" BorderColor="Maroon"
2
18550
rhitam30111985
by: rhitam30111985 | last post by:
Hi all , I am trying to read an html file and retrieve only the text between the body tags of that file. Now , for reading a string between two strings , i already have a function : http://www.mycsharpcorner.com/Post.aspx?postID=15
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10366
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4070
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.