HTML Tags

HTML (Hyper Text Markup Language) use of various tags to format the content. HTML tag has both a opening <tagname> and a closing tag </tagname>. HTML tag contains three main parts: opening tag, content, closing tag (<tagname>Content goes here...</tagname>) For example, <html> has its closing tag </html> and <title> tag has its closing tag </title> tag etc.

<!DOCTYPE html> declaration defines this document to be HTML5
<html> root element of an HTML page
<head> contains meta information about the document
<title> specifies a title for the document
<body> contains the visible page content
<h1> defines a large heading
<p> defines a paragraph

# Example

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Page Title</title>
</head>
<body>
    <h1>This is heading 1</h1>
    <h2>This is heading 2</h2>
    <h3>This is heading 3</h3>
    <h4>This is heading 4</h4>
    <h5>This is heading 5</h5>
    <h6>This is heading 6</h6>
    <p>My first paragraph.</p>
 </body>
</html>