<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Sorry Levi but change it to ~ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
What that says that the page should conform to the most strictest way of coding a XHTML document. So all tags should be lower case and all should have a closing partner unless they are self closing.
Best way to learn as in learn to the highest standards from the off.
The one you have allows for mistakes.
<html xmlns="http://www.w3.org/1999/xhtml">
1 tells user agents it is a HTML document.
2. As it is a XHTML document it needs a namespace which is what the xmls attribute is.Now the namespce is a way of telling humans more about the code in the document check out XHTML namespace which is what it links to for more info.
Sorry to hijack this thread a bit but what about 1.1? The book I used said to use 1.0 but then I saw 1.1 on W3C so I changed to that. Should I still be using 1.0?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.