Example:

<!DOCTYPE html>
<html>
    <head>
        <title>HTML Tutorial</title>
    </head>
    <body>
        <h1>This is a Heading</h1>
        <p>This is a paragraph.</p>
    </body>
</html>


<!DOCTYPE html>

It's an HTML5 declaration and tells the browser to display web pages correctly.


<html></html>

HTML document


<body></body>

Display content on the screen 



HTML Heading Levels

HTML headings are defined with the <h1> to <h6> tags.

 <h1>Heading Level 1</h1>
 <h2>Heading Level 2</h2>
 <h3>Heading Level 3</h3>
 <h4>Heading Level 4</h4>
 <h5>Heading Level 5</h5>
 <h6>Heading Level 6</h6>


Paragraphs

defined with the <p> tag:

<p>Paragraph one</p>
<p>Paragraph two.</p>


Links

defined with the <a> tag:

<a href="#">This is a link</a>


Images

defined with the <img> tag:

<img src="path_of_img" alt="SEO Friendly Name">


Download source code

Are you facing problems in understanding this article? download source code now