DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars
HomeRegisterMembershipsGetting StartedDomain Tools Domain EbooksSEO Software Domain Resellers Advertise

Go Back   DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars > Content Development > Website Development and Design Discussion > Scripts
Register Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 09-26-2008, 01:15 PM   #1 (permalink)
Platinum Lifetime Member
 
emark's Avatar
 
Last Online: 11-20-2009 07:43 PM
iTrader: (14)
Join Date: Aug 2004
Posts: 279
DNF$: 15
Location: Here


doctype question

Hi guys and guyettes,

I had this posted in another location, but couldn't get a response. I apologize if this is the wrong place to post it, but I really need an answer to this question.

Can anyone help me with this?

I'm currently installing this doctype on my websites:

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

Is that the correct one to use or should I be using:

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

Exactly what does having the correct doctype do for a website? Should all types of websites use the same doctype?

Thanks a lot for any feedback.
__________________
Rick
SeniorComments.com, SeniorPublication.com, SeniorLeisure.comm, BoletosJuego.com, ConciertoGratis.com, PelotasDePlaya.com, MiBoletoGratis.com, PiezasDeAutomoviles.com
emark is offline   Reply With Quote
Sponsored Ads
Old 09-26-2008, 09:20 PM   #2 (permalink)
Platinum Lifetime Member
No Avatar
 
Name: Kate
Last Online: 02-04-2009 03:05 AM
iTrader: (2)
Join Date: Apr 2008
Posts: 106
DNF$: 975
Location: Ukraine
Country:


Rick,

DOCTYPE defines the language schema of the following XML document. If omitted, most browsers use the so-called 'loose' schema that allows many usual HTML mistakes inexperienced coders do.

The two DOCTYPE definitions you mention are for HTML 4.01, a pretty old standard from mid-90s. Nowadays good coders use XHTML Transitional or Strict which are more clean and semantically correct.

Quote:
Exactly what does having the correct doctype do for a website?
It ensures correct display and parsing of the [X]HTML document.

Quote:
Should all types of websites use the same doctype?
No. DOCTYPE should tell browsers and bots what is the language of the following document.
accomatic is offline   Reply With Quote
Old 09-27-2008, 05:06 AM   #3 (permalink)
Platinum Lifetime Member
 
emark's Avatar
 
Last Online: 11-20-2009 07:43 PM
iTrader: (14)
Join Date: Aug 2004
Posts: 279
DNF$: 15
Location: Here


Thank you accomatic,

I really appreciate the help. Now I can correct some of the mistakes I'm making. My websites thank you too.
__________________
Rick
SeniorComments.com, SeniorPublication.com, SeniorLeisure.comm, BoletosJuego.com, ConciertoGratis.com, PelotasDePlaya.com, MiBoletoGratis.com, PiezasDeAutomoviles.com
emark is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:22 PM.
Copyright @2001-2009 DNForum.com