Friday, August 21, 2020

How To Declare DOCTYPE on Your Website or Blog

How To Declare DOCTYPE on Your Website or Blog Doctype declaration is very important for a website, because search engine can get additional information about Webpages 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 beforehtmltag. 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. 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 1Log in to your Blogger Account and Go to yourBlogger Dashboard Step 2Click on -Template-Edit HTML- Step 3Now locatehtml. Step 4 Above the opening HTML add the DOCTYPE code for declaration. E.g. the script will be like below- Step 5 Now click Save template button. Thats 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 htmland just you have to put theDOCTYPE code above openinghtml. This is really easy process. And for better and smoothperformance on web browsers you must declare DOCTYPE. Happy Blogging.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.