Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jan 2007
    Posts
    34
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Stubborn contact.html

    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.

    Code:
    <!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>
    Last edited by rmedek; 08-05-2008 at 07:25 PM.

  • #2
    Senior Coder koyama's Avatar
    Join Date
    Dec 2006
    Location
    Copenhagen, Denmark
    Posts
    1,246
    Thanks
    1
    Thanked 5 Times in 5 Posts
    I think you named your page contact.htm, but you have linked to contact.html.

  • #3
    New Coder
    Join Date
    Jan 2007
    Posts
    34
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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.

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Its likely your editor not saving things properly. Just simply rename it.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,729
    Thanks
    6
    Thanked 1,015 Times in 988 Posts
    Quote Originally Posted by Dan_Grr View Post
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •