I work for a Federal agency (US Geological Survey), I've been working a lot with both CSS and XHTML standards (trying to convince the rest of the Web developers in USGS to use them!).
We just got a mandate from National Headquarters that all USGS web pages must use a certain CSS template and also a fixed header and footer file. When I looked at the CSS and header, etc, I noticed some possible problems, and now I'm on a committee to look into revising the CSS and header, footer.
First, they seem to use CSS for some tag attributes, but not all:
<table width="150" border="0" align="right">
(1) Would you suggest (if we are putting out a CSS template to be used by ALL USGS pages well into the future) that we should use CSS attributes for every possible instance in a tag? I mean, doesn't using CSS attributes only partially kind of defeat the purpose?
I know they will ask this: "If we use CSS for every possible tag attribute, will that cause problems with older browsers". I think the answer is "no"....?
A related(?) concern:
The header they sent out is written using plain HTML. Now, I now code in XHTML.
Well, here is their header file (below). Yes, I see nested TABLES (I assume this could done without tables, but ...). I see spacer gifs... I see they don't have TITLE attributes to help explain links and images.....and partial implementation using CSS... But, notice they use HTML coding instead of XHTML. Now, if I use a DTD for XHTML won't this header cause problems with my code, since my code will not verify for XHTML?
My question: Do we have to offer multiple header files? One in XHTML and another in HTML? Or, if we build a single header (and footer) in XHTML, would that work fine for everyone, even if they use use a DTD of HTML Transitional?
As a Gov't agency putting out Web pages, I just feel we ought to abide by standards and I fear the people who developed these files did not.. But, now that I'm the "complainer" and on the committee, they will expect me to be an expert in these matters - so I wanted to be able to offer correct advise.
Thanks a lot
Howard Perlman
US Geological Survey
--------------------------------------------------------------------------------------------------
<!-- BEGIN Header Template -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr> <td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="178" align="left"><a href=" src="header.jpg" alt="Link to USGS home page." width="178" height="72" border="0"></a></td>
<td width="100%" class="banner">
<table width="150" border="0" align="right" cellpadding="0" cellspacing="0" class="ccsa">
<tr>
<td><img src="spacer.gif" width="1" height="72" alt=""></td>
<td><a href=" class="ccsa">USGS Home</a><br>
<a href="index.html" class="ccsa">Contact USGS</a>
</tr>
</table>
</td></tr></table>
<img src="spacer.gif" width="1" height="1" alt=""></td>
</tr>
<tr><td class="siteTitle">Enter Site title </td></tr>
</table>
<!-- END USGS Header Template -->
We just got a mandate from National Headquarters that all USGS web pages must use a certain CSS template and also a fixed header and footer file. When I looked at the CSS and header, etc, I noticed some possible problems, and now I'm on a committee to look into revising the CSS and header, footer.
First, they seem to use CSS for some tag attributes, but not all:
<table width="150" border="0" align="right">
(1) Would you suggest (if we are putting out a CSS template to be used by ALL USGS pages well into the future) that we should use CSS attributes for every possible instance in a tag? I mean, doesn't using CSS attributes only partially kind of defeat the purpose?
I know they will ask this: "If we use CSS for every possible tag attribute, will that cause problems with older browsers". I think the answer is "no"....?
A related(?) concern:
The header they sent out is written using plain HTML. Now, I now code in XHTML.
Well, here is their header file (below). Yes, I see nested TABLES (I assume this could done without tables, but ...). I see spacer gifs... I see they don't have TITLE attributes to help explain links and images.....and partial implementation using CSS... But, notice they use HTML coding instead of XHTML. Now, if I use a DTD for XHTML won't this header cause problems with my code, since my code will not verify for XHTML?
My question: Do we have to offer multiple header files? One in XHTML and another in HTML? Or, if we build a single header (and footer) in XHTML, would that work fine for everyone, even if they use use a DTD of HTML Transitional?
As a Gov't agency putting out Web pages, I just feel we ought to abide by standards and I fear the people who developed these files did not.. But, now that I'm the "complainer" and on the committee, they will expect me to be an expert in these matters - so I wanted to be able to offer correct advise.
Thanks a lot
Howard Perlman
US Geological Survey
--------------------------------------------------------------------------------------------------
<!-- BEGIN Header Template -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr> <td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="178" align="left"><a href=" src="header.jpg" alt="Link to USGS home page." width="178" height="72" border="0"></a></td>
<td width="100%" class="banner">
<table width="150" border="0" align="right" cellpadding="0" cellspacing="0" class="ccsa">
<tr>
<td><img src="spacer.gif" width="1" height="72" alt=""></td>
<td><a href=" class="ccsa">USGS Home</a><br>
<a href="index.html" class="ccsa">Contact USGS</a>
</tr>
</table>
</td></tr></table>
<img src="spacer.gif" width="1" height="1" alt=""></td>
</tr>
<tr><td class="siteTitle">Enter Site title </td></tr>
</table>
<!-- END USGS Header Template -->