Skip to main content

DOCTYPE html

<! DOCTYPE html>

It is a declaration that instructs browser about what version of HTML is used in creating the web-page.
Though it is not mandatory to write it in the html document but it is a good practice to include it. suppose we have not specified html version then the browser will itself assume a version, now it may happen that we have created a web-page using html-5 and someone is accessing it using an older browser which works on html-4 then some of our tags will not be rendered leading to some errors.

Comments

Popular posts from this blog

Servlet and JSP

Dynamic websites using Java Framework  Earlier most of the dynamic websites were created using java framework like Servlet JSP But these methods of creating dynamic websites are quite outdated now. Servlet It is a java framework used to create dynamic websites. There could be many servlets handling different aspects of the websites. All these servlets are hosted on a servlet container. JSP - Java Server Page It is a java framework used to create dynamic websites. It is similar to servlet but there exists some differences like Servlet has html code into java code whereas JSP has java code into html

Meta - tag

<meta> The meta tag or metadata tag is a self-closing tag which provides data about data. It provides information to browser about the web-page like language of the page author of the page last modified time, etc Important attributes :- charset content name http-equiv ex : <meta name="author" content="avas27">