Below is a simple HTML document and details of each part are explained:

<!DOCTYPE html>
<!--- JS/CSS file is to be added here -->


<h1>Here is Heading</h1>

<p>demo content goes here.</p>


The first line <! DOCTYPE html> is given to understand what the document is like (the browser). This declaration is based on what version of HTML you use. For example, the document above is a document of HTML 5. If this was the version 1.0 of XHTML, then the declaration would have to be given

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

It is a transitional meaning that all of the HTML can be written in this document as well as the deprecated elements such as font. Frameset cannot be used.

However, if the “xhtml1-transitional.dtd” is replaced with “xhtml1-strict.dtd” then the deprecated elements can not be used.


** They are no longer used normally after the HTML5 comes. Declaration of HTML 5 is given.

<!DOCTYPE html>

However, it is not very important. Copy and paste (X) HTML document and paste it at the beginning of the writing. However, if you do not give some output to certain browsers, such as Internet Explorer (IE).

At present, XHTML is being used more often, so this site is also HTML’s Tuberculosis of the XBurtle XHTML, although I’m saying HTML actually follows the rules of XHTML in all HTML tutorials. Another useful thing is that, after the latest version of HTML, the HTML 5 is now being used to make the most of the world.

We will also discuss the basics of HTML 5 as well.