Introduction
HTML is the standard markup language used for creating web pages. It describes the structure of a webpage using series of elements. Each HTML element tells teh browser how to display different parts of the content.
What is HTML ?
- HTML stand for Hyper Text Markup Language.
- It is the blueprint of web pages - used to structure and present content like text, images, videos and audio.
- In simple terms, HTML is the language used to create and design web pages.
- HTML files are saved with .html or .htm extensions.
- All HTML elements are enclosed in angular brackets <> and are known as tags
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>This is Heading</h1> <p>This is Paragraph.</p> </body> </html>
Output:

Page Structure of HTML

- <!DOCTYPE html> - It Declares the document type as HTML5.
- <html> - The root element of an HTML page.
- <head> - Contains metadata (information) about the document.
- <title> - Sets the title shown on the browser tab.
- <body> - Contains all the visible content (headings, paragraphs, images etc.).
- <h1> - Represents the main heading.
- <p> - Defines a paragraph.
What is HTML Element ?
HTML Element is consist of tags that is starting tag and ending tag and have content in between them. Starting tags are in <>, where as ending tag are in </>Example:
<h1>My First Heading</h1>
<p>This is paragraph</p>
Explanation
- <h1> - this is starting tag
- <p> - this is starting tag
- </h1> - this is ending tag
- </p> - this is ending tag
- My First heading - This is content in between them
- This is paragraph - This is content in between them
and the the whole <h1>My First Heading</h1> is called as element.