How To Declare DOCTYPE on Your Website or Blog?

How to declare DOCTYPE declaration in Blogger Template?

0
data:blog.title
HTML 5

Doctype declaration is very important for a website, because search engine can get additional information about Webpage’s HTML version. But many webmaster think declaration is an HTML tag. But indeed it is an instruction to the web browser about what version of HTML the page is written in. And it must be declare before <html> tag.

Types of HTML That works with DOCTYPE

We know there are different types of HTML version released and DOCTYPE declaration varying on HTML. However DOCTYPE declaration is necessary for web browsers thus it can render the content correctly. You can see below different DOCTYPE declaration codes according to HTML version.

HTML 5 = <!DOCTYPE html>
HTML 4.01 Strict = <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”>
HTML 4.01 Transitional = <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>
HTML 4.01 Frameset = <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Frameset//EN” “http://www.w3.org/TR/html4/frameset.dtd”>
XHTML 1.0 Strict = <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
XHTML 1.0 Transitional = <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
XHTML 1.0 Frameset = <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Frameset//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd”>
XHTML 1.1 = <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”>

All DOCTYPE declaration codes are changing with HTML version. And except HTML 5 version other HTML versions specified by DTD for better browsers rendering.

How to declare DOCTYPE declaration in Blogger Template?

I know now you are trying to declare DOCTYPE in your Blogger template. But this is depending on your HTML written version. Most of the Blogger template developers are using HTML 5 version code for DOCTYPE declaration. Even I am using HTML 5 version for DOCTYPE declaration. For declaring DOCTYPE please follow the below tutorials.

Step 1 Log in to your Blogger Account and Go to your Blogger Dashboard

Step 2 Click on -> Template -> Edit HTML-> 

Step 3 Now locate <html…….

Step 4 Above the opening HTML add the DOCTYPE code for declaration. E.g. the script will be like below-

<!DOCTYPE html>
<HTML dir='ltr' lang='en' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data'

Step 5 Now click Save template button.

That’s it now your website will be understandable by web browsers and it will performs great on the web.

If you are using different Web platform then just locate the <html> and just you have to put the DOCTYPE code above opening <html>. This is really easy process. And for better and smooth performance on web browsers you must declare DOCTYPE. Happy Blogging.
How To Declare DOCTYPE on Your Website or Blog?
4 Stars stars - "How To Declare DOCTYPE on Your Website or Blog?" Doctype declaration is very important for a website, because search engine can get additional ...

Post a Comment

Facebook Group Community Disqus Channel Code ConverterHide Code Converter Show EmoticonHide Emoticon

Got questions? Ask ’em below! While we’re here, you might like to give any feedback about this Post, Your comment inspire us to continuous Improvement of This Blog and Contents. Your words are your own, so be nice and helpful if you can. Please, only use your REAL NAME, not your business name or keywords. Using business name or keywords instead of your real name will lead to the comment being deleted. Anonymous commenting is not allowed either. Limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.

Make sure you tick the Notify Me box below the comment form to be notified of follow up comments and replies. Thank you for commenting

Contact Form

Name

Email *

Message *