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
Old 08-17-2005, 10:48 AM Fundamentals
Novice Talker

Posts: 10
Location: Grapevine, Texas
Trades: 0
Is the DOCTYPE declaration a fundamental requirement preceding your html code? My site is a MS FrontPage 2003 generated site. If yes, how should I know which DOCTYPE declaration I should use and do I use the full declaration?

I have seen sites with and with out the DOCTYPE visible and ranking very well on the search engine scene.

Thanks,

Steve T
SteveT is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-17-2005, 11:04 AM
fancymoustache's Avatar
Ultra Talker

Posts: 316
Location: Michigan
Trades: 0
DOCTYPEs are not exactly required, but they do hold significant value. When you use one correctly, your webpages should act the same in all browsers. A lot of the problems that are listed here on WT is about something working in FireFox and not in IE, or something similar. Here is a good article to read about DOCTYPEs: http://www.alistapart.com/articles/doctype/
fancymoustache is offline
Reply With Quote
View Public Profile
 
Old 08-17-2005, 11:54 AM
Novice Talker

Posts: 10
Location: Grapevine, Texas
Trades: 0
Thanks for your feedback. The site explains the reasoning well, however I am still uncertain about the following:

1. Should the code go on your .index (home?) page only, or should you add the code to all pages of your site?
2. Is it wise to modify the opening HTML code to reflect additional info such as >> example: <html xmlns="http://www.w3.org/1999/xhtml">?
SteveT is offline
Reply With Quote
View Public Profile
 
Old 08-17-2005, 12:28 PM
fancymoustache's Avatar
Ultra Talker

Posts: 316
Location: Michigan
Trades: 0
1) goes on every page
2) I've never used that so I don't know. The only thing I make sure to put on every page is a DOCTYPE and an encoding. I use <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> for that.
__________________
For over a thousand generations, the Jedi Knights were the guardians of peace and justice in the Old Republic. Before the dark times, before the Empire.
fancymoustache is offline
Reply With Quote
View Public Profile
 
Old 08-17-2005, 02:01 PM
Novice Talker

Posts: 10
Location: Grapevine, Texas
Trades: 0
Thanks FancyM - That's exactly what I have done.
SteveT is offline
Reply With Quote
View Public Profile
 
Old 08-17-2005, 03:42 PM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
Steve, I use the following DOCTYPE declaration. fancy is right in that it is not required, but it is good practice.


Code:
<html> <!DOCTYPE HTML PUBLIC "-//W3C/DTD/HTML 4.0//EN">
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Old 08-17-2005, 07:28 PM
Novice Talker

Posts: 10
Location: Grapevine, Texas
Trades: 0
Guys, currently, below I have listed my spec. W3c is still telling me I have errors, however based on my generator (MSFP2003) maybe the errors or still ok. What do you think?

Wed Aug 17 16:36:43 2005
Server: Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a PHP-CGI/0.1b
Size: 13947
Content-Type: text/html
Encoding: iso-8859-1

Actual code= <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Doctype: HTML 4.01 Transitional

What do you think?
SteveT is offline
Reply With Quote
View Public Profile
 
Old 08-18-2005, 04:19 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
And are we supposed to guess what the errors are.

You have posted your server headers. Nothing to do with W3c validation, and the fact you are using a transitiional DTD.

Validation is done against your HTML source code and for that we need a URL.
__________________
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!
 
Reply     « Reply to Fundamentals
 

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