Simple HTML Document

<!DOCTYPE html>
The <!DOCTYPE html> defines the page in HTML5.

<html>
This tag is the root of an HTML page.

<head>
This tag contains meta information about the page.
This tag can include a title for the document, scripts, styles, meta information and more.

<title>
The tag contains a title for the page.
This tag is required in all HTML documents and it denote the title of the document.
Displays a title for the page in search-engine results(important for SEO).

<body>
This tag contains all the contents of an HTML documents, such as text, hyperlinks, images, tables, lists, etc.

How to run in computer?
You need an editor(eg. notepad/notepad++)for typing HTML code.
Open an editor.
Type your HTML code
Save the file with(.html)extension.
To execute the code just double click on the html file.
This file will open in your default browser and you can see the program output.

Example:

<!DOCTYPE html>
<html>
<head>
<title>Simple Html document</title>
</head>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>

Output of this code will look like this: