Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-01-2004, 05:20 AM
WebProWorld New Member
 

Join Date: Apr 2004
Location: Czech Republic
Posts: 11
evocreative RepRank 0
Default DOCTYPE declarations

I know they are important, but that's as far as my knowlegde about them go. Does anybody know how they're supposed to be used and how the misuse of them affects your website and the way is viewed by search engines?

A website I'm currently developing ( http://www.praguestagandhen.com ) doesn't have ANY DOCTYPE declaration. It seems as it was removed by Dreamweaver. Is that possible? Or could it be because of my own sloppiness with the code?

I inserted one (shown at the bottom of this posting) and validated the page with a markup validation service and it said that the page was not valid html 4.1 transitional.

Any comments, suggestions?

I inserted this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
__________________
Fernando Davila
EVO Creative
420 777 135 386

http://www.evocreative.com
http://www.praguestagandhen.com
Reply With Quote
  #2 (permalink)  
Old 07-01-2004, 08:46 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default Doctype declaration

I generally would recommend using a doctype wherever possible, and validating your code as you build your pages. Sometimes it's not always possible to be a 100% compliant, but I firmly believe your site will ultimately benefit.

Remember a doctype is basically your way of announcing or declaring the type of document you have made, and that document should conform to the standards set out in its declaration. If you don't specify a doctype, browsers are free to interpret your documents as they feel free (often known as "quirks mode"). Wouldn't you like to be in control of how your pages appear? :o)

With regards to the SE benefits, I don't think that a text-based crawler really cares about a doctype declaration; as search engine technology becomes more sophisticated it may become an issue, but this is pure speculation on my part! ;o)

If you fancy doing some reading... there are three pages of excellent discussion on this very topic here: Absolutely No Need For Document Type Definitions

Hope that helps,

Paul
Reply With Quote
  #3 (permalink)  
Old 07-01-2004, 08:52 AM
WebProWorld New Member
 

Join Date: Apr 2004
Location: Czech Republic
Posts: 11
evocreative RepRank 0
Default great

Thank you. That was very helpful. According to that article, most of the big websites don't seem to be using them anymore. Maybe they'll be extinct evenutally.
__________________
Fernando Davila
EVO Creative
420 777 135 386

http://www.evocreative.com
http://www.praguestagandhen.com
Reply With Quote
  #4 (permalink)  
Old 07-01-2004, 09:01 AM
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Western Australia
Posts: 2,105
matauri RepRank 0
Default

Quote:
Originally Posted by evocreative
I inserted one (shown at the bottom of this posting) and validated the page with a markup validation service and it said that the page was not valid html 4.1 transitional.
When you check for validation check the box that says "Show Source". Then read down the list at your errors, and compare them line by line to the source code at the bottom of the page.

Don't be disheartened though, like many are. It may say it has 100 errors, but 80 of them might be generated by one error further up the page. So start at top of error list, and work your way down. With W3C's new layout, they have made it easier than before to recognise & correct errors.

And I am a firm believer in doctypes.
__________________
Web Development Community ::: Forum ::: Library

It' time for Progressive Web & IT Development!
Reply With Quote
  #5 (permalink)  
Old 07-01-2004, 09:11 AM
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Western Australia
Posts: 2,105
matauri RepRank 0
Default

I wouldnt be too fast to follow the big boys. An example of how well their sites are coded:

Microsoft

Macromedia

The big boys are the worst coders around. They came to rely on their programs instead of their skills.

So dont use them as an example :-)
__________________
Web Development Community ::: Forum ::: Library

It' time for Progressive Web & IT Development!
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: ,



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

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


Search Engine Optimization by vBSEO 3.2.0