my website problems

Well make your code valid then lol,

Granted the validator isn't really that helpful, as most errors are generated from others.

First problem is your title tag needs to be within the head tags.

Just go over your HTML with a fine comb.

Edit: also the anchor for the header image isn't closed.
 
Change your head to the following, this will remove quite a lot of the errors:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Amber Horton's Official Website</title>
<link rel="stylesheet" type="text/css" href="css.css">
</head>
Because you hadn't set the doctype properly the validator was falling back to 4.01 Transional instead of the Strict you wanted.

I've looked through the rest of the page and you're using depreciated attributes, such as align and language. As well as that, you need to check that you close you're elements properly. You'll get the hang of it.
 
No it's not being silly, they are genuine errors.

Code:
<!-- START ZERO TAXI HEADER CODE -->


<!-- END ZERO TAXI HEADER CODE -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Amber Horton's Official Website</title>
<link rel="stylesheet" type="text/css" href="css.css">
</head>

<div id="wrapper">

<a href="home.html">
<img src="images/h1.jpg" alt="Amber Horton's Official Website" /></a>
<div id="header">
<ul><li><a href="home.html">home</a></li><li><a href="photo.html">photos</a></li><li><a href="bio.html">bio</a></li><li><a href="resume.html">resume</a></li><li><a href="contact.html">contact</a></li></ul>
</div>

<h2>
<script language="JavaScript1.2">


var message="Welcome to Amber Horton's Official Website"
var neonbasecolor="gray"
var neontextcolor="white"
var flashspeed=45  //in milliseconds

///No need to edit below this line/////

var n=0
if (document.all||document.getElementById){
document.write('<font color="'+neonbasecolor+'">')
for (m=0;m<message.length;m++)
document.write('<span id="neonlight'+m+'">'+message.charAt(m)+'</span>')
document.write('</font>')
}
else
document.write(message)

function crossref(number){
var crossobj=document.all? eval("document.all.neonlight"+number) : document.getElementById("neonlight"+number)
return crossobj
}

function neon(){

//Change all letters to base color
if (n==0){
for (m=0;m<message.length;m++)
//eval("document.all.neonlight"+m).style.color=neonbasecolor
crossref(m).style.color=neonbasecolor
}

//cycle through and change individual letters to neon color
crossref(n).style.color=neontextcolor

if (n<message.length-1)
n++

}

function beginneon(){
if (document.all||document.getElementById)
flashing=setInterval("neon()",flashspeed)
}
beginneon()


</script>
</h2>

</div>
<!-- START ZERO TAXI FOOTER CODE -->


<!-- END ZERO TAXI FOOTER CODE -->
</body>
</html>

Basically, you are not closing tags correctly, you're also setting attributes to elements which are no longer supported. Such as border=0 for images.

You do all that styling with CSS remember.

Code:
img {
border: 0;
}

Also no align attribute in elements, center align elements with the text align property or the margin: 0 auto trick as discussed with you previously.
 
Last edited:

ahh i see now. ok i was lost but now i think i have found my way again. thanks for the help tonihgt guys.

1 quick last quesiotn, would it be better to instead of using an image for the whoe head, just have it as writting and a white abckground and then have jsut the flower as an image so that its easier to change for different colour schemes and also lower in size?
 
Last edited:
addy_010 said:
ahh i see now. ok i was lost but now i think i have found my way again. thanks for the help tonihgt guys.

1 quick last quesiotn, would it be better to instead of using an image for the whoe head, just have it as writting and a white abckground and then have jsut the flower as an image so that its easier to change for different colour schemes and also lower in size?

Yeah, I would agree. It will also load abit quicker and save on bandwidth.

Thats the beauty of CSS, you want to change your site in a certain way? Well you change the ONE css file instead of multiple HTML files.
 
Back
Top Bottom