Loading
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 stands for HyperText Markup
It is the foundational language used to create and structure web pages. Think of it as the blueprint that tells the browser what content to display and how to display it whether it is text, images, videos, or audio.

  • HTML files are saved with .html or .htm extensions.
  • HTML uses tags (enclosed in angle brackets like < >) to define elements on the page.


Example: Your First Web Page

<!DOCTYPE html>
<html>

<head>
    <title>Page Title</title>
</head>

<body>
    <h1>This is a Heading</h1>
    <p>This is a paragraph.</p>
</body>

</html>


Output: 

Uploaded Image



Uploaded Image



What is an HTML Element?

An HTML element is the building block of a web page. It defines how the browser should display content.

Each element usually consists of:

  • A Start Tag – Begins the element (e.g., <p> )
  • Some Content – The text or other elements it holds (e.g., This is a paragraph) 
  • An End Tag – Closes the element (e.g., </p> )


Example: 

<p>This is a paragraph.</p>


  • <p> – Start tag 
  • This is a paragraph. – Content
  • </p> – End tag


Together, they form the complete HTML element.

Note: Some elements do not need an end tag - these are called self-closing tags, like <img> or <br>.


Why Are HTML Elements Important?

HTML elements tell the browser what kind of content it is dealing with - whether it is a heading, a paragraph, an image, or a link - and how to display it.

They create the structure of your webpage and help organize content in a meaningful way.