Simple HTML Document

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

This tag is the root of an HTML page.

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

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).

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.


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

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


Output of this code will look like this: