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 

No comments:

Post a Comment