Jump to content

What Doctype Do I Use?


Guest emelisa
 Share

Recommended Posts

Guest emelisa

So I have just one questionI was doing some validationSo this was one of the warnings that had come up for my index page well all my pageswww.emelisahealingarts is my websitenot to mention other errors I am not yet able to wrap my head aroundRe tables and td and trErrorMismatch between Public and System identifiers in the DOCTYPE declarationThis document uses an inconsistent DOCTYPE declaration. The System Identifier http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd declares the XHTML 1.0 Transitional document type, but the associated Public Identifier -//W3C//DTD Xhtml 1.0 Transitional//EN does not match this document type.The recommended Public Identifier for http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd is -//W3C//DTD XHTML 1.0 Transitional//EN.The safest way to use a correct DOCTYPE declaration is to copy and paste one from the recommended list and avoid editing that part of your markup by hand.This is what I have on my website now<!DOCTYPE html PUBLIC "-//W3C//DTD Xhtml 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns=".w3.org/1999/xhtml">The question I have is knowing what is the right code to add to my website, I didnt put this on the web the designer did,Im a little confused because it states xmlns and I am htmlSo some of my other errors that come relate to the xmlnsI use Dreamweaver, Im learning re codesSo can some one refer me to which doctype I should use?Also if I change the doctype what affect would it have on my website?ThanksEm

Link to comment
Share on other sites

Notice that the "xhtml" is small letters in your DTD and capitalized in the other one? That will make a difference.Here is a link to a list of acceptable DTD's : http://www.w3.org/QA/2002/04/valid-dtd-list.htmlCopy the xhtml transtional one into your page to see if that works better.I would recommend that you try to use an html 4 strict instead of the xhtml DTD. Use a strict doctype to force IE into Standards mode instead of Quirks mode

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...