Monday, November 16, 2015

How to write a simple HTML?

<!Doctype html>
<html>
<head>
<title>This is the first html</title>
</head>
<body>
<h1> Hello World </h1>
<p> Hiiiiiiii, This is the begining of learning HTML </p>
</body>
</html>


Doctype tag describes that this is a html document. This tag helps browser to display webpage correctly.
<html> tag describes that this is html document.
<head> is for the details about the document.
<title> is for page title.
<body> describes the visible page content.
<h1> is for heading
<p> is for paragraph.


You can save above html code as somename.html. You can open it in any browser.
It will display

Hello World

Hiiiiiiii, This is the begining of learning HTML 

Versions of HTML

There have been many versions of HTML from the early days.
HTML in 1991
HTML 2.0 in 1995
HTML 3.2 in 1997
HTML 4.01 in 1999
XHTML in 2000
HTML 5.0 in 2014