I have my main navigation bar set up as a server side include file so all the pages will load the same generic bar. What I would then like to do is to highlight the link for the page that one is actually on. I have worked out a way to make the current location bold and italicized except that the code does not validate and I can't see a way around this. Any help would be appreciated.
My doctype is:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd">
My ssi file:<div class="global-nav-bar">
<div id="global-nav">
<ul>
<li id="global-home"><a href="index.html">Home</a></li>
<li id="global-pillows"><a href="pillows.shtml">Pillows</a></li>
<li id="global-natural-history"><a href="natural-history.shtml">Natural History</a></li>
<li id="global-purchase"><a href="purchase.shtml">Purchase</a></li>
<li id="global-contact"><a href="contact.shtml">Contact</a></li>
<li id="global-about"><a href="about.shtml">About</a></li>
</ul>
</div> <!-- end of global-nav -->
</div> <!-- end of global-nav-bar -->
The relevant part of the main .shtml file, done as inline css:<style type="text/css"> #global-natural-history a {font-weight: bold; font-style: italic; } </style>
<!--#include virtual="global-nav-ssi.html"-->
The html validator is giving me this message:Line 41, Column 23: document type does not allow element "STYLE" here
<style type="text/css"
> #global-natural-history a {font-weight: bold; font-style
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
Thank you very much for any coding help that you can give me.