...

View Full Version : Stubborn contact.html



Dan_Grr
01-22-2007, 08:22 PM
My contact page doesn't appear, neither offline, nor online, I don't know whats wrong. All the code seems okay. Here, take a look please. Also, I get this error while validation. It's about the border="0". According to W3C validator it's not a valid attribute for transitional documents. Hmm?

Don't worry about the javascript, it's just accessing external javascript libraries to make a rounded special effect in my layout.

contact.html is exactly alike other pages in the site (link removed), only the content is different. This must be related to the "mailto". Note that I don't have the "at" sign here in the code as a precaution.


<!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" xml:lang="en" lang="en">
<head>
<title>Spartan Secrets</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="generator" content="HAPedit 3.1" />
<link rel="stylesheet" type="text/css" href="style.css" />

<script type="text/javascript" src="niftycube.js"></script>
<script type="text/javascript">
window.onload=function(){
Nifty("div#container");
Nifty("div#content,div#nav","same-height small");
Nifty("div#header,div#footer","small");
}

</script>
</head>
<body>
<div id="container">
<div id="header"><h1>Spartan Secrets</h1></div>
<div id="content">

<h2>Tell me, stranger</h2>

<p><span class="capital">F</span> or any questions, suggestions, or just to say hello, you can contact me <a href="mailto:secrets@spartansecrets.com">here</a>.</p>


</div>
<div id="nav">

<h3>Menu</h3>


<div id="button">
<ul>
<li><a href="home.html">Home</a></li>
<li><a href="#">Secrets</a></li>
<li><a href="#">History</a></li>
<li><a href="artwork.html">Artwork</a></li>
<li><a href="#">Links</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>

<div align="center">
<form>
<PAYPAL FORM OF A DONATE BUTTON THAT I DELETED BECAUSE THE ENCRYPTION MADE IT TOO BIG.>
</form>
</div>




</div>
<div id="footer">
<ul>
<li><a href="home.html">Home::</a></li><li><a href="#">Secrets::</a></li><li><a href="#">History::</a></li><li><a href="artwork.html">Artwork::</a></li><li><a href="#">Links::</a></li><li><a href="contact.html">Contact</a></li>
</ul>

<span class="footerline">Copyright &#169; 2007 Jo&#227;o Alexandre</span>


</div>
</div>

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "My account number in google";
urchinTracker();
</script>

</body>


</html>

koyama
01-22-2007, 08:49 PM
I think you named your page contact.htm, but you have linked to contact.html.

Dan_Grr
01-22-2007, 09:36 PM
Doh! I feel pretty stupid. It's working now, but... this question is haunting me. Isn't htm and html the same? I mean, I ran into a bit of a problem, I tried saving the contact.htm into contact.html but it didn't saved like that, it stayed in htm. So basically I just made all the pages link to contact.htm. However, all other links are html, like home.html, artwork.html, etc, except for the contact.htm that I couldn't save into html.

But Im probably being overly picky with this. Thanks for the help.

_Aerospace_Eng_
01-22-2007, 11:30 PM
Its likely your editor not saving things properly. Just simply rename it.

VIPStephan
01-23-2007, 12:11 AM
Isn't htm and html the same?

You're right, it is the same. The different extension is just a remainder of the past. When HTML was young (early 90's) file names could only have eight characters and a three character long extension for memory reasons. So originally the extension htm was used for HTML files. Nowadays that doesn't matter anymore but the old extension is still there. And I personally prefer the old one.
But still, you can't refer to a file with the extension htm while having saved it as html, simply because it's a different extension.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum