Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 01-05-2009, 08:15 PM   #1 (permalink)
Super Moderator
 
Muddy's Avatar
 
Join Date: 12-03-08
Posts: 2,703
iTrader: 0 / 0%
Latest Blog:
None

Muddy is a web professional of the highest orderMuddy is a web professional of the highest orderMuddy is a web professional of the highest orderMuddy is a web professional of the highest orderMuddy is a web professional of the highest orderMuddy is a web professional of the highest orderMuddy is a web professional of the highest orderMuddy is a web professional of the highest orderMuddy is a web professional of the highest orderMuddy is a web professional of the highest orderMuddy is a web professional of the highest order
Doctype

Hi folks,

Two questions:

1. How important is validating your site?

2. What is the best doctype for HTML created in FP?

Thanks so much in advance!

Muddy
__________________
Your family deserves pure drinking water.
Muddy is online now  
Add Post to del.icio.us
Reply With Quote
Old 01-05-2009, 10:35 PM   #2 (permalink)
v7n Mentor
 
htmlbasictutor's Avatar
 
Join Date: 10-29-07
Location: British Columbia, Canada
Posts: 798
iTrader: 0 / 0%
htmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to behold
Why Validate?

In addition to the explaination given above:
-If you use a Strict DOCTYPE it helps you clean up your extra coding that should be in your stylesheet.
-Cleaner coding makes it easier for the search engine bots and those using assistive technology to read your website.
-Cleaner coding makes it easier to maintain a website, especially if you get out of the habit of using inline styles and embedded (internal) stylesheets.

From the article above:
Quote:
"...Do remember: household-name companies expect people to visit because of the name and in spite of dreadful websites. Can you afford that luxury?...
Quote:
What is the best doctype for HTML created in FP?
If you only know HTML, and want to learn to code in preparation for the future but still not ready for XHTML then you would use the Strict declaration.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
(HTML 4.01 forms part of the XTHML standard)

On the other hand, if you know XHTML (or want to learn it) then use
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Differences Between XHTML And HTML
__________________
HTML Basic Tutor - Learn to code your web pages/blogs to be cross-browser compatible
Basic Computer Information - Computer Basics for website owners
htmlbasictutor is online now  
Add Post to del.icio.us
Reply With Quote
Old 01-05-2009, 10:46 PM   #3 (permalink)
v7n Mentor
 
htmlbasictutor's Avatar
 
Join Date: 10-29-07
Location: British Columbia, Canada
Posts: 798
iTrader: 0 / 0%
htmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to beholdhtmlbasictutor is a splendid one to behold
Modern browsers also have quirks mode and strict modes.
Quirks mode and strict mode

Activating Browser Modes with Doctype
__________________
HTML Basic Tutor - Learn to code your web pages/blogs to be cross-browser compatible
Basic Computer Information - Computer Basics for website owners
htmlbasictutor is online now  
Add Post to del.icio.us
Reply With Quote
Old 01-06-2009, 12:25 PM   #4 (permalink)
Super Moderator
 
Muddy's Avatar
 
Join Date: 12-03-08
Posts: 2,703
iTrader: 0 / 0%
Latest Blog:
None

Muddy is a web professional of the highest orderMuddy is a web professional of the highest orderMuddy is a web professional of the highest orderMuddy is a web professional of the highest orderMuddy is a web professional of the highest orderMuddy is a web professional of the highest orderMuddy is a web professional of the highest orderMuddy is a web professional of the highest orderMuddy is a web professional of the highest orderMuddy is a web professional of the highest orderMuddy is a web professional of the highest order
Thanks a ton for all the info H!
I tried putting this code in my pages (<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">), but my site went from 54 errors to 184. Also, it changed the appearance drastically in that all the cells became much taller leaving lots of space around the cell contents.
__________________
Your family deserves pure drinking water.
Muddy is online now  
Add Post to del.icio.us
Reply With Quote
Old 01-06-2009, 12:51 PM   #5 (permalink)
Junior Member
 
Join Date: 01-04-09
Posts: 9
iTrader: 0 / 0%
Latest Blog:
None

Budois is liked by many
Maybe your websites presentational information (cell height etc.) is defined inside your html code. When u use strict html u can't have those attributes inside your code (this will generate an error). Everything related to presentation of your website should be placed inside style tags or a CSS sheet.
Budois is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-07-2009, 01:07 PM   #6 (permalink)
v7n Mentor
 
Join Date: 07-24-06
Posts: 665
iTrader: 1 / 100%
Latest Blog:
None

nasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nice
Quote:
Originally Posted by Muddy View Post
Thanks a ton for all the info H!
I tried putting this code in my pages (<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">), but my site went from 54 errors to 184. Also, it changed the appearance drastically in that all the cells became much taller leaving lots of space around the cell contents.
Use
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Transitional doctype is a bit more forgiving than strict.
nasty.web is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
DOCTYPE Issues Rushtrack Coding Forum 6 02-12-2008 01:44 PM
no Doctype found Cabaya SEO Forum 1 01-30-2008 10:56 PM
<!DOCTYPE HTML 4.01 Transitional//E GoldDust Coding Forum 6 02-10-2004 09:29 PM
Doctype problems jallard Coding Forum 14 11-06-2003 04:02 PM


Sponsor Links
Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 08:53 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.