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
invalid html 4.01 transitional - aarrghhh
Old 12-05-2005, 06:39 AM invalid html 4.01 transitional - aarrghhh
purk's Avatar
Extreme Talker

Posts: 164
Name: James
Location: marbella & surrey
Trades: 0
What's wrong with my code? ;

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>blah</title>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="en-uk" />
<meta name="ROBOTS" content="ALL" />
<meta name="Copyright" content="Copyright" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="description" content="home"/> <link rel="stylesheet" type="text/css" href="includes/style.css"/>

<link rel="alternate" type="application/rss+xml" title="RSS" href="feed.xml"/>
</head>


The W3C markup validator finds hundreds of errors, here's a few of the best;

1) there is no attribute "XMLNS"
2) there is no attribute "XML:LANG"
3) document type does not allow element "META" here
4) document type does not allow element "LINK" here

and my personal favorite;

5) end tag for element "HEAD" which is not open
6) document type does not allow element "BODY" here

am i missing something here?

btw: i know zip about xhtml, it was something someone else added for me.

thanks brains

;p
purk is offline
Reply With Quote
View Public Profile Visit purk's homepage!
 
 
Register now for full access!
Old 12-05-2005, 07:14 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
well it's probably because your markup code is in XHTML but your Doctype HTML4.01 Transitional

Decide which it is going to be and either change your code to html or use a XHTML doctype.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-05-2005, 07:43 AM
purk's Avatar
Extreme Talker

Posts: 164
Name: James
Location: marbella & surrey
Trades: 0
hmmmm, well as far as i know (and that's not too far) all my code is in html.
i got that dtd from the w3schools website so i figured it would be ok, but maybe (likely) i misunderstood.
can you suggest where i might find a suitable xhtml dtd example to get an idea what mine should look like?

thanks for the help thus far mr hirst.

what's the weather like in bp?
purk is offline
Reply With Quote
View Public Profile Visit purk's homepage!
 
Old 12-05-2005, 09:43 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
nope the markup is xhtml, well the bit up there is anyway. tags all lowercase and ending with /> is the giveaway

W3C Doctypes

Weather isn't too bad at all, bit on the cold side for venturing down to the beach though.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-05-2005, 10:21 AM
purk's Avatar
Extreme Talker

Posts: 164
Name: James
Location: marbella & surrey
Trades: 0
awesome, that was the very page i'd been looking for, for the past three hours.

all works wonderfully now - cheers (again)

;p
purk is offline
Reply With Quote
View Public Profile Visit purk's homepage!
 
Reply     « Reply to invalid html 4.01 transitional - aarrghhh
 

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 0.39719 seconds with 12 queries