How do you go about choosing a doctype for your site?
What are the ramifications for getting it wrong?
Doctype
(2 posts) (2 voices)-
Posted 5 months ago #
-
Hi PI48895,
I think content/language type is more likely to cause issues especially with character encoding like &, ©, etc. Code might break and there will be other validation issues if your content/code doesn't match the doctype that represents it. I actually recommend the HTML5 doctype and UTF-8 for content.
HTML5 and CSS3 aren't exactly officially supported yet, but the HTML5 doctype is completely harmless and backwards compatible. So, I say might as well start using it since it will become the standard anyways. And I think they prepared the doctype to be permanent, so even with HTML6, 7, 8 etc it will still be
<!DOCTYPE html>which is very nice.Here's a quick template of what I recommend:
<!DOCTYPE html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>ABC Moving Company</title> </head> <body> ... Content, pictures, wording etc ... </body> </html>I've written and designed several website templates and WordPress themes using respected and up-to-date standards:
Website Templates: http://freewebplate.org/
WordPress Themes: http://tidythemes.com/
New WordPress theme I just released: http://calmestghost.com/groundwork/
Thanks, Bryan
Bryan Hadaway: Web & Graphic Designer
Design: http://calmestghost.com/ | Blog: http://bryanhadaway.com/Posted 5 months ago #
Reply
You must log in to post.
