navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

!DOCTYPE HTML PUBLIC code

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Microsoft FrontPage Help >> !DOCTYPE HTML PUBLIC code
Page: [1]
 
MonaE

 

Posts: 15
Joined: 10/27/2004
Status: offline

 
!DOCTYPE HTML PUBLIC code - 11/14/2007 13:51:23   
Hello,

I am trying to make my webpages validated by W3C standards. I am using FrontPage 2003. How do I get it to create a genuine doctype code? ie.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

I can copy and paste, but want to make sure the code is a true reflection of the website.

Thanks,
MonaE
Tailslide

 

Posts: 5972
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: !DOCTYPE HTML PUBLIC code - 11/14/2007 14:11:55   
This is the full DOCTYPE for HTML 4.01 Transitional:

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


Ideally you want to code your site to the DOCTYPE rather than the other way around - if you see what I mean!

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to MonaE)
MonaE

 

Posts: 15
Joined: 10/27/2004
Status: offline

 
RE: !DOCTYPE HTML PUBLIC code - 11/14/2007 14:14:35   
Thank you,

If I place on my website, does that mean it is all that it claims?

(in reply to Tailslide)
Tailslide

 

Posts: 5972
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: !DOCTYPE HTML PUBLIC code - 11/14/2007 14:28:11   
A DOCTYPE is just a label - it tells the W3C validator that you're intending to use a certain flavour of HTML so that the validator can know which set of rules to check and what set of errors to throw back at you.

A web browser will see a complete doctype (no matter which one) and will read your page using "Standards Mode" which (should) mean that they all use the same set of rules to interpret the code. Without a full DOCTYPE browsers rely on their error handling routines to guess what you want - and these error handling routines are all different so it's harder to get cross-browser consistency.

Using a particular DOCTYPE won't make your code correct.

All it does is help you spot coding errors via the validator (which will hopefully help with cross-browser issues) and switch browsers into Standards Mode (which also helps cross-browser issues).

The only exception to this off the top of my head is using frames - if you use the wrong DOCTYPE when you're using frames then the whole thing goes cablooey!

Think of a DOCTYPE as a book cover - it doesn't make the book any better, it just helps you know what you might be in for and you'd be much better off always using one!

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to MonaE)
MonaE

 

Posts: 15
Joined: 10/27/2004
Status: offline

 
RE: !DOCTYPE HTML PUBLIC code - 11/14/2007 14:40:39   
Thank you.

(in reply to Tailslide)
Page:   [1]

All Forums >> Web Development >> Microsoft FrontPage Help >> !DOCTYPE HTML PUBLIC code
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts