Ethics
March 9, 2010, 7:05pm
1
Hey guys,
I’m trying to validate one of my pages and got a strange error that has completely stumped me. I have no clue how to fix it.
The url in question is: http://ntarchives.com
Any help or a point in the right direction would be greatly appreciated.
Thanks,
Mario
strange. i ended up getting it to validate by reformatting it:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Simplicity</title>
<link href="css/reset.css" rel="stylesheet" type="text/css" />
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/cufon-yui.js"></script> <script type="text/javascript" src="js/logo.font.js"></script> <script type="text/javascript">
Cufon.replace('#logo');
</script> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/easySlider1.7.js"></script> <script type="text/javascript">
$(document).ready(function(){
$("#slider").easySlider({
auto: true,
continuous: true,
numeric: true
});
});
</script>
</head>
<body>
<div id="site_container">
<div id="header">
<div id="header_top">
<div id="logo">
<a href="index.html"></a>
</div>
<div id="navigation">
<ul>
<li>
<a href="index.php" class="active">Home</a>
</li>
<li>
<a href="about.php">About</a>
</li>
<li>
<a href="work.php">Work</a>
</li>
<li>
<a href="contact.php">Contact</a>
</li>
</ul>
</div>
</div>
<div id="header_bottom">
<div id="pagination">
<a href="index.php">Home</a><img src="images/pagination_arrow.png" width="23" height="9" alt="Pagination Arrow" /> Latest Posts
</div>
<div id="submit">
<div id="submit_button">
<a href="#">Submit</a>
</div>
</div>
</div>
</div>
</div>
<div id="footer_container">
<div id="footer_content">
<div id="footer_top">
<div id="contact_container">
<h2>Contact Us</h2>
<div id="email">
<a href="mailto:info@email.com"> info<img src="images/at.png" width="25" height="24" alt="At" />email.com </a>
</div>
<div id="icons_container">
<div class="twitter">
<a href="#"></a>
</div>
<div class="facebook">
<a href="#"></a>
</div>
<div class="rss">
<a href="#"></a>
</div>
<div class="delicious">
<a href="#"></a>
</div>
<div class="technorati">
<a href="#"></a>
</div>
<div class="favourite">
<a href="#"></a>
</div>
</div>
</div>
<div id="about_us">
<h2>About Our Company</h2>
<p>
Over the weekend and into Monday we unfortunately experienced some pretty severe downtime on all Envato WordPress blogs. The downtime was due to problems in the data centre of our current hosting company which was out of our control.
</p>
<p>
<a href="about.php">Continue Reading...</a>
</p>
</div>
<div id="map">
</div>
</div>
<div id="footer_bottom">
<div id="copyright">
© Copyright 2010
<div class="rights">
+ Some Rights Reserved.
</div>
</div>
<div id="footer_nav">
<ul>
<li>
<a href="index.php">Home</a>
</li>
<li>
<a href="about.php">About Us</a>
</li>
<li>
<a href="work.php">Our Work</a>
</li>
<li>
<a href="contact.php">Contact Us</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>
maybe it was something to do with line break, the type of or something. really not sure. the original validated fine in my text editor’s (BBEdit’s) document syntax check, so maybe it’s a bug in the w3 validator? don’t know.
got it. line 34:
<li><a href="index.php"class=“active”>Home</a></li>
no space before class. BBEdit’s validation was ok with it. and the validator error was useless.
Ethics
March 9, 2010, 10:21pm
4
johnyboy AMAZING!
Thank you so much, you’ve saved me tons of time. I was having a hard time finding it because I have it coded in php like this…
<li><a href="index.php"<?php if($pagename == "index.php") echo ' class="active"'; ?>>Home</a></li>
Who knew a simple space would cause such a problem
Thanks again!
Mario