|
jaybee -> RE: INCLUDES and search engines? (5/25/2005 9:29:16)
|
quote:
Is it necessary to use head tags and add things like links to style sheets? Is this not taken from the main page once your page is 'included' ? I never have any header info in my includes I let the main page specify the layout. If everything is well thought out beforehand you shouldn't need to have any inline styles. What tends to happen though is, you need to make a small change later on and rather than setting it up in your style sheet you use a span on the item. Try not to, it only stores up problems for later and the whole point of css is that you can change everything fast from one place. The following is the included header from one of my sites.
<!-- header div -->
<div id="hdr">
<img src="/images/logos/california-ballroom-r.jpg" width="471" height="161" alt="California Ballroom Trade Mark" title="Welcome to the California Ballroom web site"/>
<div id="helpbox">
<br />
<a tabindex="1" href="#title" class="skip" title="access key 2" accesskey="2">Skip Navigation</a><br />
<span class="separator">|</span><br />
<a tabindex="1" href="/help/privacy.htm" title="Privacy Information for this site">Privacy Policy</a><br />
<span class="separator">|</span><br />
<a tabindex="1" href="/help/help.htm" title="Answers to browsing problems">Troubleshoot</a><br />
<span class="separator">|</span><br />
<a tabindex="1" href="/help/accessibility.htm" title="Accessibility information for this site">Accessibility</a><br />
<span class="separator">|</span><br />
<a tabindex="1" href="/help/larger-text.htm" title="Increase the text size on this site"><span class="medwhitebold">LARGER TEXT</span></a><br /><br />
</div>
<div>
<br />
<?php
#ini_set('display_errors', 'On');
// See class.breadcrumb.inc.php
include_once('class.breadcrumb.inc.php');
$breadcrumb = new breadcrumb;
$breadcrumb->homepage='home'; // sets the home directory name
$breadcrumb->dirformat='ucfirst'; // Show the directory in this style
$breadcrumb->symbol=' ~ '; // set the separator between directories
$breadcrumb->showfile=FALSE; // shows the file name in the path
$breadcrumb->linkFile=TRUE; // Link the file to itself
$breadcrumb->hideFileExt=TRUE; //Hide the file extensions
$breadcrumb->cssClass='crumb'; //use this css class
$breadcrumb->_toSpace=TRUE; // converts underscores to spaces
$breadcrumb->dashtoSpace=TRUE; // converts dashes to spaces
echo "<p>You are here: ".$breadcrumb->show_breadcrumb()."</p>";
?>
<ul id="navlist">
<li><a tabindex="2" href="/" title="skip to the homepage">HOME</a></li>
<li><a tabindex="2" href="/forum/index.php" title="skip to the forum">FORUM</a></li>
<li><a tabindex="2" href="/eguestpro/EGuest-PRO_show.php" title="skip to the guestbook">GUESTBOOK</a></li>
<li><a tabindex="2" href="/forms/feedform.htm" title="skip to the contact page">CONTACT</a></li>
<li><a tabindex="2" href="/shop/index.php" title="skip to the shop">SHOP</a></li>
<li><a tabindex="2" href="/help/sitemap.php" title="skip to the site map">SITE MAP</a></li>
</ul>
</div>
</div>
<!-- end of header -->
Please note..... no header tags, no <html>, no <body> all pulled into the page using a php include.
|
|
|
|