Complete beginner needs HELP! Bubble Under links not working & can't get jpeg

I’ve just got a copy of “Build your own website the right way” by Ian LLoyd.

This is my first introduction to website design

I’ve worked through the first two chapters but have had a couple of problems with making some of the project website called “Bubble Under” work!

Does anyone know where can i go to get assistance or can anyone help me please?

I cant get the pages to link and i cant find / load the jpeg “divers-circle.jpg”

What i’ve done is below- where have i gone wrong?

:confused:

Contact us page

<!DOCTYPE html>
<html lang="en".
  <head>
    <title>Contact Us at Bubble Under</title>
    <meta charset="utf-8"/>
  <link href="stylesheet" type="text/css"/></head>
  <body>
    <div id="header">
      <div id="sitebranding">
        <h1>Bubbleunder.com</h1>
      </div>
      <div id="tagline">
        <p>Diving club for the south-westUK-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 div -->
    <div id="bodycontent">
        <h2>Contact Us</h2>
      <p>To find out more, contact Club Secretary Bob Dobalina on 01793 641207 or <a href="mailto:bob@bubbleunder.com">email [email]bob@bubbleunder.com[/email]</a>.</p>
    </div>  <!-- end of body content div -->
  </body>
</html>

About page

<!DOCTYPE html>
<html lang="en".
  <head>"About Bubble Under.com: who we are and what this site is for"</title>
    <meta charset="utf-8"/>
  <link href="stylesheet" type="text/css"/></head>
  <body>
    <div id="header">
      <div id="sitebranding">
        <h1>Bubbleunder.com</h1>
      </div>
      <div id="tagline">
        <p>Diving club for the south-westUK-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 div -->
    <div id="bodycontent">

    <h2>About Us,</h2>

    <p><span style="color: blue; font-weight: bold;">Bubble under</span> is a group of diving enthusiasts based in the south-west UK who meet up for diving trips in the summer months when the weather is good and the bacon rolls are flowing. We arrange weekends awayas small groups to cut down the costs of accommodation and travel, and to ensure that everyone gets a trustworthy dive buddy.<p/>

    <p>Although we're based in the south-west, we don't stay on our own turf: past diveing weekends have included trips to Scapa Flow in Scotland and to Malta's numerous wreck sites.</p>

    <p>When we're not diving, we often meet up in a local pub to talk about our recent adventures (any excuse, eh).</p>
    <p>Or as our mand Bob Dobalina would put it:</p>
<blockquote>
  <p>"Happiness is a dip in the ocean followed by a pint or two of Old Spekled Hen. You can quote me on that!"</p>
</blockquote>
        </div>  <!-- end of body content div -->
  </body>

Index page

<!DOCTYPE html>
<html lang="en".
  <head>
    <title>Bubble Under-The diving club for south-west UK </title>
    <meta charset="utf-8"/>
  <link href="stylesheet" type="text/css"/></head>
  <body>
    <div id="header">
      <div id="sitebranding">
        <h1>Bubbleunder.com</h1>
      </div>
      <div id="tagline">
        <p>Diving club for the south-westUK-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 div -->
    <div id="bodycontent">
      <h2> Welcome to our super-duper Scuba site</h2>   <P><img src="divers-circle.jpg" width="200" height="162" alt="A circle of divers practice their skills"/></P>
      <p>Glad you could drop in and share some air with us! You've
          passed your underwater navigation skills and succsessfully
          found your way to the start point - or in our case, our
          home page.</p>
       </div>  <!-- end of body content div -->
  </body>
</html>

Hi mgd494, and welcome to the forums. :slight_smile:

You’re not alone - somebody asked a very similar question yesterday. Have a wee read at this thread and see if it helps. If not, please post back so we can help you solve the problem.

Edit: I’ve just spotted a typo in the code you posted.

<li><a href="contact.html">Contact Us</a><[COLOR="#FF0000"]?[/COLOR]li>

That ? should be a / :slight_smile: That won’t be causing your problems, but it’s worth correcting anyway.

Thanks. I’ll change that.

I’ve worked out how to link the pages.
They were saved with html extensions in the folder so were html.html on the browser = nowhere to go. Simple to correct once you know how. Same mistake as Roger P. Thanks again.

However i still don’t know why the picture won’t load! Any ideas?

You’ve made several small typos amongst other things within:

contact.html
The <html lang=“en”. should be: <html lang=“en”> and the <li><a href=“contact.html”>Contact Us</a><?li> should be: <li><a href=“contact.html”>Contact Us</a></li> and <div> <!-- end of navigation div –> should be: </div> <!-- end of navigation div –> as that is a closing DIV tag.

about.html
You have the same issue with <html lang=“en”. that should be: <html lang=“en”> and <head>“About Bubble Under.com: who we are and what this site is for”</title> should be: <head><title>“About Bubble Under.com: who we are and what this site is for”</title> again you have a copy and paste error <li><a href=“contact.html”>Contact Us</a><?li> should be: <li><a href=“contact.html”>Contact Us</a></li> plus the line […]everyone gets a trustworthy dive buddy.<p/> that should have a closing P as so </p> NOT <p/> Again the <div> <!-- end of navigation div –> should be: </div> <!-- end of navigation div –> as that is a closing tag. Plus <p>Or as our mand Bob Dobalina would put it/p> should be: <p>Or as our mand Bob Dobalina would put it</p> you may have missed a closing slash (but it looks like pacman on the forum) and you need a final </html> after your closing BODY tag.

index.html
The same fullstop DOCTYPE error and the closing LI question mark error in the navigation (since you copy-and-pasted the error throughout) not to worry now you know…

Also the <P> and </P> wrapping your IMG should preferably be lowercase <p> and </p>

So once you fix all those small errors I have highlighted the index.html page should work.

Also to link the stylesheets for that chapter use: <link href=“style1.css” rel=“stylesheet” type=“text/css” />

But if you are still not seeing the image after the fixes just post here with your updated code for index.html and we’ll persevere together and solve the crisis. :slight_smile:

Though please make sure the *.jpg image is within the SAME directory/folder as the index.html file and refresh/reload your browser first as that is looking like the number one culprit at the moment, i.e. a misplaced image file.

Done all changes. Thanks you must be a hawkeye. I’ll need to be more vigilant in future.

Actually, the easy way is to run your pages through the W3C Validator and let it pick up your errors for you. :slight_smile:

Has that solved your image problem?

Those few - mainly repetitive errors - I mentioned probably wouldn’t have effected the image not displaying.

Though it’s still good to fix them and if you have a text editor with HTML syntax highlighting they are also easier to spot with a eyeball, as you can see after I got Guido to put the markup in CODE blocks in post #1.

So if you are just using notepad to edit, I’d suggest using something better like Notepad++ or HTML-Kit they are probably more suited. I presume index.html is now working? If not don’t be afraid to ask if the image still doesn’t show. :slight_smile:

Thanks for all your help.

I’ll move on to chapter 3 now.

Glad to see you finally got it working eventually with practice it gets like riding a bike but obviously in the process you’ll fall off a few times until you’ve mastered it.