Adding A Picture

I have just started going through the examples of Build Your Own Website The Right Way, and i am up to page 47 fine.
But i am having trouble getting the “Divers pausing in a circle” picture to show up when i view the page.

I am pretty sure it down to how i am linking (if that’s the right word) the picture to the page.
I downloaded html2 Code and copied that picture to my Web Folder beside the example pages i have written, and then copied it’s path in the index file as follows;

<!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” />
</head>
<body>
<h1>BubbleUnder.com</h1>
<p>Diving club for the south-west UK - let’s make a splash!</p>
<h2>Welcome to our super-dooper Scuba site</h2>
<p><img src=“C:\Users\Andrew\Desktop\Web Folder” 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 successfully found your way to the start point - or in this case, our home page.</p>
<h3>About Us</h3>
<p>Bubble Under 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 away as small groups to cut the costs of accomodation 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 diving weekends away 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>
<h3>Contact Us</h3>
<p>To find out more, contact Club Secretary Bob Dobalina on 01793 641207 or <a href="mailto:bob@bubbleunder.com">email bob@bubbleunder.com</a>.</p>
</body>
</html>

But all that is showing up is a box with a red x ?
I also tried adding .jpg at the end; “C:\Users\Andrew\Desktop\Web Folder.jpg” but it didn’t work either ?

The book uses the Response-O-Matic for sending email because that’s something you can’t do with markup or styling. Meaning it’s outside the scope of HTML/CSS. Since a back-end script is required to make a form work, the author decided to have readers use a service that is willing to do it for them.

However Response-O-Matic has terrible (front end) code. Center tags, hidden inputs which aren’t inside a block element, blah blah… only because browsers are good at guessing how to deal with crap markup does any of it actually work.

Anyway it’s trial and error like this that you learn a lot from. I did a lot of that. Still do sometimes. It also helps you learn to debug : )

<fieldset>
<form method="post" action="/mail.php">
<input type="hidden" name="acctid" id="acctid" value="trqoyaa5gwq282e5" />
<input type="hidden" name="formid" id="formid" value="829561" />
<input type="hidden" name="required_vars" id="required_vars" value="name,email" />
 
<legend>Tell us About a Dive Event</legend>
...

Something like this would garner several cryptic messages from the Validator. Sometimes the only reason they make sense is when you know the specs.
Above code for example has a fieldset wrapping a form instead of a form wrapping a fieldset, and inline elements as direct children of the form. Typically the validator will just say something like what you posted:

Line 30, Column 76: document type does not allow element “input” here; missing one of “p”, “h1”, “h2”, “h3”, “h4”, “h5”, “h6”, “div”, “pre”, “address”, “fieldset”, “ins”, “del” start-tag
<input type=“hidden” name=“acctid” id=“acctid” value=“trqoyaa5gwq282e5” />✉
The mentioned element is not allowed to appear in the context in which you’ve placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you’ve forgotten to close a previous element.

It tries to throw out some ideas why you’ve got it wrong, but it won’t say “forms may only have blocks as direct children”.

The colour warnings in CSS I always ignore, because apparently the CSS validator can’t see how elements with transparent backgrounds look as if they’ve inherited their parent’s backgrounds. Usually there is no real colour mismatch.

Thanks for the help.
The book is a Sitepoint book: Build Your Own Website The Right Way Using HTML & CSS, by Ian Lloyd.

You were right, i had deleted the form opening tag when i was editing the document earlier.
I checked back in the book and fixed it, and then added the details from Responce-O-Matic just before the end of the form.
In my label for ContactName, i changed all the ContactName parts to just Name, because the part i took from Response-O-Matic’s document didn’t have ContantName, but just had name instead, and the form wouldn’t work until i did this, and it is working now, i even got an email reply from Response-O-Matic with the details i filled in on the form.
And the document now validates !

To be honest, sometimes i feel i am flying through the book, doing the examples, everything seems common sense, but other times i don’t know how i got to a certain point, and everything seems so complicated.
At least what i have doing so far has worked, it’s really going to be fun when i have a go at my own website :goof:

<form action="http://www.response-o-matic.com/mail.php" method="post" class="contact">
            <fieldset>
              <legend>Tell us About a Dive Event</legend>
                <div>
                  <label for="name" class="fixedwidth">Name</label>
                  <input type="text" name="name" id="name" />
                </div>
                <div>
                  <label for="telephone" class="fixedwidth">Telephone Number</label>
                  <input type="text" name="telephone" id="telephone" />
                </div>
                <div>
                  <label for="email" class="fixedwidth">Email Address</label>
                  <input type="text" name="email" id="email" />
                </div>
                <div>
                  <label for="eventname" class="fixedwidth">What's the event called</label>
                  <input type="text" name="eventname" id="eventname" />
                </div>
                <div>
                  <label for="eventdate" class="fixedwidth">When's the event happening?</label>
                  <input type="text" name="eventdate" id="eventdate" />
                </div>
                <div>
                  <label for="region" class="fixedwidth">What region is the event in?</label>
                  <select name="region" id="region">
                    <option>South-west</option>
                    <option>South-east</option>
                    <option>Midlands</option>
                    <option>Central</option>
                    <option>London</option>
                    <option>East</option>
                    <option>North</option>
                    <option>Bonnie Scotland</option>
                    <option>Northern Ireland</option>
                    <option>Overseas (see details below)</option>
                  </select>
                </div>
                <div>
                  <p>Please provide any other details you think will be useful to us in the text area below (it may save us calling or emailing you, and help avoid delays).</p>
                  <label for="details" class="fixedwidth">More Details (as much as you think we'll need!)</label>
                  <textarea id="details" name="details" cols="30" rows="7"></textarea>
                </div>
                <div>
                  <p>If we need to call you back for any more info, what would be the best time to call you on the number supplied?</p>
                  <input type="radio" name="timetocall" id="morning" value="Morning" />
                  <label for="morning">In the morning</label>
                  <br />
                  <input type="radio" name="timetocall" id="afternoon" value="Afternoon" />
                  <label for="afternoon">In the afternoon</label>
                  <br />
                  <input type="radio" name="timetocall" id="evening" value="Evening" />
                  <label for="evening">In the evening</label>
                  <br />
                  <input type="radio" name="timetocall" id="never" value="Never" checked="checked" />
                  <label for="never">No calls please</label>
                  </div>
                  <div>
                    <p>Bubble Under may share information you give us with other like-minded people or web sites to promote the event. Please confirm if you are happy for us to do this.</p>
                    <input type="checkbox" name="publicize" id="publicize" checked="checked" />
                    <label for="publicize">I am happy for this event to be publicized outside of and beyond BubbleUnder.com, where possible</label>
                  </div>
                  <div class="buttonarea">
                    <input type="submit" value="Send Us The Info" />
                  </div>
	          <div>
		    <input type="hidden" name="acctid" id="acctid" value="trqoyaa5gwq282e5" />
		    <input type="hidden" name="formid" id="formid" value="829561" />
		    <input type="hidden" name="required_vars" id="required_vars" value="name,email" />
	          </div>
            </fieldset>
          </form> 
            <p>If you need to get in touch urgently, please call Bob Dobalina on 01793 641207. For anything else, please <a href="mailto:bob@bubbleunder.com">drop us a line by email</a>.</p>
            <p>
              <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
            </p>
      </div> <!-- end of bodycontent div -->

There are several minor errors with the XHTML syntax but the thing you need to focus upon is how to spell the attribute; submit - an easy mistake to make. :wink:

See your code; <input type=“submit[t]” value=“Send Us The Info” /> should probably be: <input type=“submit” value=“Send Us The Info” />

Right I will give you a few tips you’ll find: http://validator.w3.org/ very useful for finding some syntax errors and this: http://jigsaw.w3.org/css-validator/ for CSS.

If you are using Firefox I’d also suggest: http://users.skynet.be/mgueury/mozilla/ it will save you some time.

So you might also like to fix the other errors too be on the safe-side. If you still have issues after that simple “typo fix” for why the form was not working don’t hesitate to come back and ask more questions. :slight_smile:

Sorry.
I see what you mean with the Images folder being in the web folder, you only need to use the image and picture name to link it.
I couldn’t get the picture to link until i just used; “Images/divers-circle.jpg”, and it worked fine.

Thanks for the pointers.
I will watch out for the backwards slashes Windows use and make sure they are forwards slashes.

I will change the name of my folder to Web, instead of Web Folder.

And i will change the name of my Pictures folder to Images.

In the beginning i was trying to link to the picture in the html2 Code folder i downloaded from this site, but i couldn’t get it to work.
I right clicked the file, chose properties, and then copied the location of the picture from the general tab, and pasted it in the web page.
But it wouldn’t work.
So i copied the picture from html2 Code to a pictures folder in the Web Folder, using Photoshop Elements, i then right clicked the file again, chose properties, and then copied it’s location from the general tab, and pasted that in the web page, and it worked.
Is it wrong to link an image this this way, i understand that easily ?

When i do build my own website i will be using a few of my current fish pictures, which have tricky names such as “L333 hypancistrus sp.”, there are plenty of others like that.
I was going to copy the pictures i am using to a folder just for the website, how would you rename file names such as above to make it best for linking to ?
Would keeping everything lower case and also putting a dash inbetween the names be alright, ie; l333-hypancistrus-sp ?

Within web pages the usual convention is to use forward slashes; "/" not backwards slashes; "\" which Windows OS uses.

Also it is best not use spaces in folder names for website directories as technically: ‘Web Folder’ translates to; ‘Web%20Folder’ should it ever be uploaded onto a web server.

You may also find it easier if you used “relative links” because if you move the image directory/file to somewhere else it won’t work… or you will need to rewrite the URL value.

Since you said you are working within a Directory called: “Web Folder” you probably could have written: the following: Pictures/divers-circle.jpg to “link” to the *.jpg in the ‘Pictures’ folder/directory.

For example:

<img src="Pictures/divers-circle.jpg" width="200"
      height="162" alt=
      "A circle of divers practice their skills" />

Which you should find will work fine within the directory you have your (x)html file, i.e. “Web Folder” it saves you the hassle of writing out all that gibberish relating to your username, etc. :wink:

I have 6 Errors and 2 warnings when i try to validate the “Contact Us” document with W3C Markup Validator.
But i am unsure what the validator is saying.
Can someone show me where i have went wrong, adding a form to the document has been pretty tricky.

<!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>Contact Us at Bubble Under</title>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <link href="style1.css" rel="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-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="events.html">Club Events</a></li>

        <li><a href="contact.html">Contact Us</a></li>

        <li><a href="gallery.html">Image Gallery</a></li>

      </ul>

    </div> <!-- end of navigation div -->

    <div id="bodycontent">

      <h2>Contact Us</h2>

      <p>To let us know about a forthcoming dive event, please use the form below.</p>

      <form action="" method="post" class="contact">

        <fieldset>

          <legend>Tell us About a Dive Event</legend>

          <div>
            <label for="contactname" class="fixedwidth">Contact Name</label>

            <input type="text" name="contactname" id="contactname"/>

          </div>

          <div>

            <label for="telephone" class="fixedwidth">Telephone Number</label>

            <input type="text" name="telephone" id="telephone"/>

          </div>

          <div>

            <label for="email" class="fixedwidth">Email Address</label>

            <input type="text" name="email" id="email"/>

          </div>

          <div>

            <label for="eventname" class="fixedwidth">What's the event called?</label>

            <input type="text" name="eventname" id="eventname"/>

          </div>

          <div>

            <label for="eventdate" class="fixedwidth">When's the event happening?</label>

            <input type="text" name="eventdate" id="eventdate"/>

          </div>

           <div>
   
              <label for="region" class="fixedwidth">What region is the event in?</label>

              <select name="region" id="region">
     
                <option>South-west</option>

                <option>South-east</option>

                <option>Midlands</option>
     
                <option>Central</option>
     
                <option>London</option>

                <option>East</option>
     
                <option>North</option>
     
                <option>Scotland</option>

                <option>Northern Ireland</option>
    
                <option>Wales</option>
 
                <option>International (see details below)</option>

              </select>
 
            </div>

            <div>

              <p>Please provide any other details you think will be useful to us
 in the text area below (it may save us calling or emailing you,
 and help avoid delays).</p>

              <label for="details" class="fixedwidth">More details (as much as you think
 we'll need!)</label>

              <textarea name="details" id="details" cols="30" rows="7"></textarea>

            </div>

            <div>
   
              <p>If we need to call you back for any more info, what would be the
 best time to call you on the number supplied?</p>
   
              <input type="radio" name="timetocall" id="morning" value="Morning"/>

              <label for="morning">In the morning</label>

              <br/>

              <input type="radio" name="timetocall" id="afternoon" value="Afternoon"/>

              <label for="afternoon">In the afternoon</label>
   
              <br/>

              <input type="radio" name="timetocall" id="evening" value="Evening"/>
              <label for="evening">In the evening</label>
   
              <br/>

              <input type="radio" name="timetocall" id="never" value="Never" checked="checked"/>

              <label for="never">No calls please</label>

            </div>

            <div>
   
              <p>Bubble Under may share information you give us here with other
 like-minded people or web sites to promote the event. Please confirm if you are happy for us to do this.</p>
   
              <input type="checkbox" name="publicize" id="publicize" checked="checked"/>

              <label for="publicize">I am happy for this event to be publicized outside of and beyond BubbleUnder.com, where possible</label>

            </div>

            <div class="buttonarea">
    
              <input type="submit" value="Send Us the Info"/>

            </div>

        </fieldset>

      </form>

      <p>If you need to get in touch urgently, please call Bob Dobalina on 01793
 641207. For anything else, please <a href="mailto:bob@bubbleunder.com">drop us a line by email</a>.</p>

    </div> <!-- end of bodycontent div -->

  </body>

</html>

These are the errors W3C says i have;

Validation Output: 6 Errors 
 Line 30, Column 76: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag 
		<input type="hidden" name="acctid" id="acctid" value="trqoyaa5gwq282e5" />&#9993; 
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. 

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). 
 Line 31, Column 66: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag 
		<input type="hidden" name="formid" id="formid" value="829561" />&#9993; 
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. 

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). 
 Line 32, Column 84: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag 
…put type="hidden" name="required_vars" id="required_vars" value="name,email" />&#9993; 
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. 

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). 
 Line 33, Column 12: end tag for "form" omitted, but OMITTAG NO was specified 
      </div>&#9993; 
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". 
 Line 29, Column 11: start tag was here 
          <form action="http://www.response-o-matic.com/mail.php" method="post"… Line 99, Column 17: end tag for element "form" which is not open 
          </form>&#9993; 
The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem. 

If this error occurred in a script section of your document, you should probably read this FAQ entry. 
 Line 101, Column 12: end tag for element "div" which is not open 
      </div> <!-- end of bodycontent div -->&#9993; 
The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem. 

If this error occurred in a script section of your document, you should probably read this FAQ entry. 
 Line 37, Column 31: reference to non-existent ID "contactname" 
                  <label for="contactname" class="fixedwidth">Contact Name</lab…&#9993; 
This error can be triggered by:

•A non-existent input, select or textarea element
•A missing id attribute
•A typographical error in the id attribute
Try to check the spelling and case of the id you are referring to.

I don’t get anything when i try to press the button.
I just get my cursor where i try to click the button, and the word beside it highlights if i trying pressing it a few times, it is like the dead button is dead.

What happens instead? Do you get any error message?

Thanks Robert
After correcting the spelling mistake the button worked fine :blush:

I will try the validators to see what they say!

I don’t have the book you’re referring to and I don’t know your PHP.

All you need to add to your form are those three hidden fields, since they hold values that will be send-ed to mail.php (I presume this is mail action page).

You can add them anywhere between the form opening and closing tags, which by the way are missing in your page.


<fieldset>
<form method="post" action="/mail.php">
<input type="hidden" name="acctid" id="acctid" value="trqoyaa5gwq282e5" />
<input type="hidden" name="formid" id="formid" value="829561" />
<input type="hidden" name="required_vars" id="required_vars" value="name,email" />

<legend>Tell us About a Dive Event</legend>
    <div>
    <label for="contactname" class="fixedwidth">Contact Name</label>
    <input type="text" name="contactname" id="contactname" />
    </div>
     Other form elements
    <div class="buttonarea">
    <input type="submit" value="Send Us The Info" />
    </div>
</form>
</fieldset>

You’re welcome. Happy that it’s working now. Stomme poes is right, those systems are most of the time a lot of c…p. If you’re a bit further and you have the change, try to set up your own email facility.

Yes, the HTML Validator can take some getting used to and errors tend to have a cascading/snowball effect so they aren’t always exactly where it says they are - hence why several got solved with one fix. As for the CSS Validator usually you can ignore the warning messages and only bother about the errors.

As you practice more you’ll become more familiar with how the validators work and what the messages are really telling you.

Hello again
I am up to Chapter 7, pages 290 to 297 in the book, but i am having trouble with the mark up for Response-O-Matic.
And when trying to submitt the data to see if i can get the “Thank You For Submitting” page to come up, i find that “Send Us The Info” button dosn’t work like a button ?

Hope you can help, here are my markups;

CSS for Bubble Under:

/*
CSS for Bubble Under site
*/

body {
  font-family: Verdana, Helvetica, Arial, sans-serif;
  background-color: #e2edff;
  line-height: 125%;
  padding: 0;
  margin: 0;
}

h1, h2, h3 {
  font-family: "Trebuchet MS", Helvetica, Arial, sans-serif;
}

h1 {

  font-size: x-large;

  background-color: navy;

  color: white;

  padding-top: 2em;

  padding-bottom: .2em;

  padding-left: .4em;

  margin: 0;

  background: navy url(backgrounds/header-bg.jpg) repeat-y right bottom;
}

h2 {
  color: navy;
  font-size: 130%;
  font-weight: normal;
  padding-top: 15px;
}

li {
  font-size: small;
  list-style-type: none;
}

p {
  font-size: small;
  color: navy;
}

#tagline p {
  font-style: italic;
  font family: Georgia, Times, serif;
  border-top: 3px solid #7da5db;
  border-bottom: 3px solid #7da5db;
  padding-top: .2em;
  padding-bottom: .2em;
  padding-left: .8em;
  margin: 0;
  background: #bed8f3 url(backgrounds/tagline-fade.jpg) repeat-y right;
}

em {
  text-transform: uppercase;
}

a {
  font-weight: bold;
}

a:link {
  color: black;
}

a:visited {
  color: navy;
}

a:hover {
  text-decoration: none;
  color: white;
  background-color: navy;
}

a:active {
  color: aqua;
  background-color: navy;
}

.fun {
  color: #339999;
  font-family: Georgia, Times, serif;
  letter-spacing: 0.05em;
}

blockquote.fun {
  font-style: italic;
}

#navigation {
  width: 180px;

  height: 484px;
  background: #7da5d8 url(backgrounds/nav-bg.jpg) no-repeat;
}

h2, ul {
  margin-top: 15px;
}

#header {
  border-top: 3px solid #7da5d8;
}

img.feature {

  float: right;

  margin: 10px;

}



.galleryphoto {

  padding-bottom: 10px;

  border-bottom: 1px solid navy;

  margin-bottom: 20px;

}



.galleryphoto p {

  font-size: 65%;

  font-weight: bold;

  margin-top: 0;

  width: 430px;

  line-height: 1.4em;

}



.galleryphoto p span {
  
font-weight: normal;
  color: gray;

}



.galleryphoto img {

  border: 15px solid white;

}

table.events {
  border-collapse: collapse;
}

table.events th, table.events td {
  padding: 4px;
  border: 1px solid #000066;
}

table.events th {
  font-size: x-small;
  text-align: left;
  background: #241374 url(backgrounds/header-bg.jpg);
  color: #ffffff;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 2px;
  padding-right: 2px;
}

table.events td {
  font-size: small;
  background: #e2edff url(backgrounds/td.jpg) repeat-x top;
}

table.events caption {
  color: #000066;
  font-size: small;
  font-weight: bold;
  text-align: left;
  padding-bottom: 5px;
}

form.contact fieldset {
  border: 2px solid navy;
  padding: 10px;
}

form.contact legend {
  font-weight: bold;
  font-size: small;
  color: navy;
  padding: 5px;
}

form.contact {
  padding: 0;
  margin: 0;
  margin-top: -15px;
  line-height: 150%;
}

form.contact label {
  font-weight: bold;
  font-size: small;
  color: blue;
}

form.contact label.fixedwidth {
  display: block;
  width: 240px;
  float: left;
}

form.contact .buttonarea input {
  background: navy;
  color: white;
  font-weight: bold;
  padding: 5px;
  border: 1px solid white;
}

form.contact .buttonarea {
  text-align: center;
  padding: 4px;
  background-color: #0066ff;
}


/*

This section deals with the position of items on the screen.

It uses absolute positioning - fixed x and y coordinates measured from the
 top-left corner of the browser's content display.

*/

#navigation, #bodycontent, #header {
  position: absolute;
}

#navigation, #bodycontent {
  top: 107px;
}

#bodycontent {
  left: 200px;
}

#header {
  width: 100%;
}

My Contact page markup:

<!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>Contact Us at Bubble Under</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <link href="style1.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
      <div id="header">
        <div id="sitebranding">
          <h1>BubbleUnder.com</h1>
        </div> <!--end of sitebranding div -->
        <div id="tagline">
          <p>Diving club for the south-west UK - let's make a splash!</p>
        </div> <!-- end of tagline 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="events.html">Club Events</a></li>
          <li><a href="contact.html">Contact Us</a></li>
          <li><a href="gallery.html">Image Gallery</a></li>
        <ul>
      </div> <!-- end of navigation div -->
      <div id="bodycontent">
          <h2>Contact Us</h2>
          <p>To let us know about a forthcoming dive event, please use the form below.</p>
          <form action="http://www.response-o-matic.com/mail.php" method="post" class="contact">
	<div>
		<input type="hidden" name="acctid" id="acctid" value="trqoyaa5gwq282e5" />
		<input type="hidden" name="formid" id="formid" value="829561" />
		<input type="hidden" name="required_vars" id="required_vars" value="name,email" />
	</div>
            <fieldset>
              <legend>Tell us About a Dive Event</legend>
                <div>
                  <label for="contactname" class="fixedwidth">Contact Name</label>
                  <input type="text" name="name" id="name" />
                </div>
                <div>
                  <label for="telephone" class="fixedwidth">Telephone Number</label>
                  <input type="text" name="telephone" id="telephone" />
                </div>
                <div>
                  <label for="email" class="fixedwidth">Email Address</label>
                  <input type="text" name="email" id="email" />
                </div>
                <div>
                  <label for="eventname" class="fixedwidth">What's the event called</label>
                  <input type="text" name="eventname" id="eventname" />
                </div>
                <div>
                  <label for="eventdate" class="fixedwidth">When's the event happening?</label>
                  <input type="text" name="eventdate" id="eventdate" />
                </div>
                <div>
                  <label for="region" class="fixedwidth">What region is the event in?</label>
                  <select name="region" id="region">
                    <option>South-west</option>
                    <option>South-east</option>
                    <option>Midlands</option>
                    <option>Central</option>
                    <option>London</option>
                    <option>East</option>
                    <option>North</option>
                    <option>Bonnie Scotland</option>
                    <option>Northern Ireland</option>
                    <option>Overseas (see details below)</option>
                  </select>
                </div>
                <div>
                  <p>Please provide any other details you think will be useful to us in the text area below (it may save us calling or emailing you, and help avoid delays).</p>
                  <label for="details class="fixedwidth">More Details (as much as you think we'll need!)</label>
                  <textarea id="details" name="details" cols="30" rows="7"></textarea>
                </div>
                <div>
                  <p>If we need to call you back for any more info, what would be the best time to call you on the number supplied?</p>
                  <input type="radio" name="timetocall" id="morning" value="Morning" />
                  <label for="morning">In the Morning</label>
                  <br />
                  <input type="radio" name="timetocall" id="afternoon" value="Afternoon" />
                  <label for="afternoon">In the Afternoon</label>
                  <br />
                  <input type="radio" name="timetocall" id="evening" value="Evening" />
                  <label for="evening">In the evening</label>
                  <br />
                  <input type="radio" name="timetocall" id="never" value="Never" checked="checked" />
                  <label for="never">No calls please</label>
                  </div>
                  <div>
                    <p>Bubble Under may share information you give us with other like-minded people or web sites to promote the event. Please confirm if you are happy for us to do this.</p>
                    <input type="checkbox" name="publicize" id="publicize" checked="checked" />
                    <label for="publicize">I am happy for this event to be publicized outside of and beyond BubbleUnder.com, where possible</label>
                  </div>
                  <div class="buttonarea">
                    <input type="submitt" value="Send Us The Info" />
                  </div>
            </fieldset>
          </form>
            <p>If you need to get in touch urgently, please call Bob Dobalina on 01793 641207. For anything else, please <a href="mailto:bob@bubbleunder.com">drop us a line by email</a>.</p>
      </div> <!end of bodycontent div -->
    </body>
</html>

What i got from Responce-O-Matic;

<!-- Begin Response-O-Matic Form -->
<!-- DO NOT EDIT YOUR FORM HERE, PLEASE LOG IN AND EDIT AT RESPONSE-O-MATIC.COM -->
<form enctype="multipart/form-data" method="post" action="http://www.response-o-matic.com/mail.php" accept-charset="UTF-8">
	<div>
		<input type="hidden" name="acctid" id="acctid" value="trqoyaa5gwq282e5" />
		<input type="hidden" name="formid" id="formid" value="829561" />
		<input type="hidden" name="required_vars" id="required_vars" value="name,email" />
	</div>
	<table cellspacing="5" cellpadding="5" border="0">
		<tr>
			<td valign="top">
				<strong>Name:</strong>
			</td>
			<td valign="top">
				<input type="text" name="name" id="name" size="40" value="" />
				
			</td>
		</tr>
		<tr>
			<td valign="top">
				<strong>Email Address:</strong>
			</td>
			<td valign="top">
				<input type="text" name="email" id="email" size="40" value="" />
				
			</td>
		</tr>
		<tr>
			<td colspan="2" align="center">
				<input type="submit" value=" Submit Form " />
			</td>
		</tr>
	</table>
</form>
<br><center><font face="Arial, Helvetica" size="1"><b>
This form powered by <a href="http://www.response-o-matic.com">Freedback</a>
</b></font></center>
<!-- End Response-O-Matic Form -->

They are probably weird because they are the Latin species/genus names for fish so technically the correct reference would be (L333 hypancistrus sp) to me (hype an siss truss) looks like a type of catfish but the L333 is a specific marker as is L066.

Even though it looks like hacker speak it probably makes logical sense for Andrew to name the image that.

Though in most cases I’d agree keep them easy to remember.

just curious, is there any reason the image names are weird? Just a tip, if you can, rename them to something meaningful. I always thought naming them in such a way made it easier to reference if they or the link needed to be edited.

The path to the picture was wrong, i got it in the end using the following path; “C:\Users\Andrew\Desktop\Web Folder\Pictures\divers-circle.jpg”

Thanks.

No problem. Some use the underscore albeit sometimes it can be hard to see in a URL bar but typically it doesn’t matter as the image will most likely appear with a HTML page anyway rather than directly viewed.

As for (hypancistrus species) you could use either underscore “_” or dash “-” as a separator. But if you use a popular Linux based web server (like Apache) the files and extensions will become case sensitive.

So as long as you maintain a constant naming system it will be easier.

If it is a general image used across the site, create a directory on your web server called images and FTP the image into the images directory.

Then you would follow xhtml’s suggestions and reference the image on your web page like this:


<img src="/images/filename.jpg" alt="enter alt text" />

I like to use the ‘/’ in front of images so that it works if you use the image in sub directories.