SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2008
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    My links don't work!

    I'm working from the Build Your own Web Site the right way book and can't seem to open any of my links nor get my external CSS to work. Here is my mark-up for my index file:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Bubble Under - The diving club for the south-west UK</title>
    <meta http-equiv="Content-Type"
    content="text/html; charset=utf-8"/>
    <style>
    <link href="style1.css" rel="stylesheet" type="text/css" />
    </style>
    </head>
    <body>
    <div id="header">
    <div id="sitebranding">
    <h1>BubbleUnder.com</h1>
    </div>
    <div id="tagline">
    <p>Diving club for the south-west UK - let's make a splash!</p>
    </div>
    </div> <!-- end of header div -->
    <div id="navigation">
    <ul>
    <li><a href="index.html">Home</a></li>
    <li><a href="about.html">About Us</a></li>
    <li><a href="contact.html">Contact Us</a></li>
    </ul>
    </div> <!-- end of navigation dix -->
    <div id="bodycontent">
    <h2>Welcome to our superdooper Sciba site</h2>
    <p><img src="divers-circle.jpg" width="200" height="162"
    alt="A circle of drivers practice their skills" /></p>
    <p>Glad you could drop in and share some air with us! You've passed your underwater navigation skills
    and successfully found your way to the start point - or in this case, our home page.</p>
    </div> <!-- end of body content div -->
    </body>
    </html>

    I ran it through a validator and it said it was fine! I'm confused.

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,424
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Take them out of the <style> tag. That's not necessary.

    <style>
    <link href="style1.css" rel="stylesheet" type="text/css" />
    </style>

  3. #3
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's not only unnecessary, but plain wrong!
    Birnam wood is come to Dunsinane


Bookmarks

Posting Permissions

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