Explanation: It is the main tag of HTML. Everything is written inside this tag.
Syntax:
<html> ... </html>
Example:
<html> <body>Hello</body> </html>
Output:
Hello
Explanation: It contains information like title of the page.
Syntax:
<head> ... </head>
Example:
<head><title>My Page</title></head>
Output:
Title appears in browser tab
Explanation: It sets the title of the webpage.
Syntax:
<title>My Page</title>
Output:
Shown on browser tab
Explanation: It contains all visible content of webpage.
Syntax:
<body>Content</body>
Output:
Content visible on screen
Explanation: It is used to write paragraphs.
Syntax:
<p>Hello</p>
Example:
<p>Hello World</p>
Output:
Hello World
Explanation: Used to create headings from h1 (big) to h6 (small).
Example:
<h1>Big</h1> <h6>Small</h6>
Output: