Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
can't get it to valid xhtml
Old 07-31-2006, 11:24 AM can't get it to valid xhtml
Extreme Talker

Posts: 161
Trades: 0
sorry to ask this again but been try to my code vaild xhtml but get one error and i can not find it.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.O Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title>Marine Fish</title>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" type="text/css" href="style.css" />

</head>
<body>

<div class="container">
	<div class="logo"><img src="images/logo.jpg" height="90"  width="100%" alt="logo" /></div>
	<div class="header">
	<ul>
	<li><a class="menu" href="#">Home</a></li>
	<li><a class="menu" href="#">News</a></li>
	<li><a class="menu" href="#">Marine Life</a></li>
	<li><a class="menu" href="#">Gallery</a></li>
	<li><a class="menu" href="#">Contact Us</a></li>
	<li><a class="menu" href="#">Links</a></li>
	</ul>

	</div>
	<div class="left"><h3 class="red">Latest News</h3>
	<p class="newsborder">New Site will be added lots more soon.</p>
	<p class="newsborder">Will be adding images of my tank soon.</p>
	<p class="newsborder">Please vist a very good forum at <a class="news"  href="http://www.marinefishuk.co.uk">www.marinefishuk.co.uk</a></p>
	</div>

	<div class="content">
	<h2 class="header">Photo Of The Month</h2>
	<p>We will display a photo here that we think is worth our photo of the month. Your image does not have to be the most beautiful tank but something that stands out.</p>
	<p class="small"><img src="images/crabsmall.jpg"  alt="crabs fighting" /><br />Crabs Fighting</p>
	<p>If you think you have a photo of the month please send it to us by email.</p>
	</div>
	<div class="footer">Copyright 2006 by Marine Fish Designed by Robert Nelson.</div>
</div>

</body>
</html>
afcbob is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-31-2006, 12:42 PM Re: can't get it to valid xhtml
b0881's Avatar
Super Talker

Posts: 112
Name: Bobby
Trades: 0
I just tried to validate it and it gives me a few errors, your doctype is incorrect to start with I believe, not sure about the other errors, just look at them now for you.
b0881 is offline
Reply With Quote
View Public Profile
 
Old 07-31-2006, 12:45 PM Re: can't get it to valid xhtml
Extreme Talker

Posts: 161
Trades: 0
whats wrong with my doctype.

Thanks for take a look.
afcbob is offline
Reply With Quote
View Public Profile
 
Old 07-31-2006, 12:48 PM Re: can't get it to valid xhtml
b0881's Avatar
Super Talker

Posts: 112
Name: Bobby
Trades: 0
Apologies, I read it wrong, your doctype is fine, I had a play around and the following code validates, hope this helps...

Code:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Marine Fish</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div class="container">
 <div class="logo"><img src="images/logo.jpg" height="90"  width="100%" alt="logo" /></div>
 <div class="header">
 <ul>
 <li><a class="menu" href="#">Home</a></li>
 <li><a class="menu" href="#">News</a></li>
 <li><a class="menu" href="#">Marine Life</a></li>
 <li><a class="menu" href="#">Gallery</a></li>
 <li><a class="menu" href="#">Contact Us</a></li>
 <li><a class="menu" href="#">Links</a></li>
 </ul>
 </div>
 <div class="left"><h3 class="red">Latest News</h3>
 <p class="newsborder">New Site will be added lots more soon.</p>
 <p class="newsborder">Will be adding images of my tank soon.</p>
 <p class="newsborder">Please vist a very good forum at <a class="news"  href="<A href="http://www.marinefishuk.co.uk">www.marinefishuk.co.uk</a></p">http://www.marinefishuk.co.uk">www.marinefishuk.co.uk</a></p>
 </div>
 <div class="content">
 <h2 class="header">Photo Of The Month</h2>
 <p>We will display a photo here that we think is worth our photo of the month. Your image does not have to be the most beautiful tank but something that stands out.</p>
 <p class="small"><img src="images/crabsmall.jpg"  alt="crabs fighting" /><br />Crabs Fighting</p>
 <p>If you think you have a photo of the month please send it to us by email.</p>
 </div>
 <div class="footer">Copyright 2006 by Marine Fish Designed by Robert Nelson.</div>
</div>
</body>
</html>
b0881 is offline
Reply With Quote
View Public Profile
 
Old 07-31-2006, 12:51 PM Re: can't get it to valid xhtml
Extreme Talker

Posts: 161
Trades: 0
thanks what did you change in the code.
afcbob is offline
Reply With Quote
View Public Profile
 
Old 07-31-2006, 12:56 PM Re: can't get it to valid xhtml
b0881's Avatar
Super Talker

Posts: 112
Name: Bobby
Trades: 0
I removed "<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />"

I also replaced the doc type but the one you had already was fine I think.

You werent doing anything wrong don't worry, good work.
b0881 is offline
Reply With Quote
View Public Profile
 
Old 07-31-2006, 12:56 PM Re: can't get it to valid xhtml
Extreme Talker

Posts: 161
Trades: 0
Thats code gives me 6 errors
afcbob is offline
Reply With Quote
View Public Profile
 
Old 07-31-2006, 12:58 PM Re: can't get it to valid xhtml
b0881's Avatar
Super Talker

Posts: 112
Name: Bobby
Trades: 0
really? which validator are you using, I've just tried it again and it gave me no errors
b0881 is offline
Reply With Quote
View Public Profile
 
Old 07-31-2006, 01:00 PM Re: can't get it to valid xhtml
Extreme Talker

Posts: 161
Trades: 0
Site Validation

and test the file with your code is Marine Fish
afcbob is offline
Reply With Quote
View Public Profile
 
Old 07-31-2006, 01:04 PM Re: can't get it to valid xhtml
b0881's Avatar
Super Talker

Posts: 112
Name: Bobby
Trades: 0
Yeah your right, for some reason it didnt copy and paste over correctly, no idea why.

Instead Ive stuff the code that validates into a text file, the link is below so try and that and it should (fingers crossed) validate.

Marine Fish

Right click and Save as then try run that through the validator.
b0881 is offline
Reply With Quote
View Public Profile
 
Old 07-31-2006, 01:39 PM Re: can't get it to valid xhtml
Extreme Talker

Posts: 161
Trades: 0
yeah thats it but i only found one thing that was wrong and find the others what did you change just so i no for next time. been over the code 100 times but keep missing it.
afcbob is offline
Reply With Quote
View Public Profile
 
Old 07-31-2006, 01:44 PM Re: can't get it to valid xhtml
b0881's Avatar
Super Talker

Posts: 112
Name: Bobby
Trades: 0
After taking a second look I think it might have been the doc type, also that link of code that I removed.

I'll have a proper look later for you but I've got to head out now to footie.

Glad it works though.
b0881 is offline
Reply With Quote
View Public Profile
 
Old 07-31-2006, 02:21 PM Re: can't get it to valid xhtml
Extreme Talker

Posts: 161
Trades: 0
thanks got it sorted now thanks for all your help.
afcbob is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to can't get it to valid xhtml
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 2.36055 seconds with 12 queries