PDA

View Full Version : Doctype unknown?????



eggypiece
08-22-2004, 10:42 PM
I was doing some of the tests to submit my site for review and realize I don't have a doctype. I read some of the messages about it, and searched in Google, but don't feel confident to throw something in my site that could be totally wrong.

Questions:
1. Is the doctype absolutely necessary?
2. Is it possible for someone knowledgeable to take a look at my home page and tell me which doctype I should use? I have no idea if I have transitional, or any of those other terms. I know very basic html, and all my pages are created using Yahoo's Site Builder so I really don't have a lot of control on the way HTML is created.

Appreciate the help!!!
Jose

Keimos
08-23-2004, 08:00 PM
Yes and No is the simple answer.

Doc type tells the browser, whichever one you are using how to interpret the page it is looking at. Basically the document you present to us will be seen in our browsers default settings. Your work of art, creation will look totally different to a lot of different people and may not necessarily display your site to its best.

Doc Type you need to place on first line is;

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

I have not used site builder so check to see if this needs to be before or after there code. It may affect your use of there software to add to the site.

quadcity
08-28-2004, 05:24 PM
Hello eggypiece. Here's two links that cover the basics and go into detail:
http://www.netmechanic.com/news/vol6/html_no9.htm
http://www.alistapart.com/articles/doctype/