Loan - Mobile Phone - Credit Card Consolidation - Loans - Online Loans

PDA

View Full Version : What type of DOC type


ian_ok
Mar 11th 2005, 12:24 am
I've read and read, but am still very confused what type of doc type I should be putting for my various websites.

They are .php mainly with html content and using the php include command for menus which pulls in a menu.html

What type should I use?

Also for a purely Spanish site, do I need to specify somewhere in a meta or other for SE's to know it is in Spanish?

Thanks Ian

Corey Bryant
Mar 11th 2005, 8:32 am
What are you using - HTML (http://www.w3schools.com/html/) or XHTML (http://www.w3schools.com/xhtml/)?

For HTML Transitional DTD:
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
For HTML Strict DTD:
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
For HTML Frames:
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
For XHTML Transitional DTD:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
For XHTML Strict DTD:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
For XHTML Frames:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
Remember, it is the way that the PHP is parsed on the server actually. And using the proper DOCTYPE will also help you when using CSS

ian_ok
Mar 13th 2005, 12:20 am
Thanks Corey, Looks like the 1st one I'd say!

Ian

Corey Bryant
Mar 13th 2005, 6:57 am
Glad to have helped - good luck with the site!