HTML/HTML Basics

HTML Elements

Updated on January 6, 2026
1 min read

What is an HTML Element?

An HTML element is everything from opening tag to closing tag, including the content inside. 

Tag + Content = Element

<p>This is a paragraph</p>

here, 

  • <p> → opening tag 
  • This is a paragraph → content 
  • </p> → closing tag

Nested Elements (Element inside Element)

<body>
   <h1>Welcome</h1>
   <p>Hello World</p>
</body>

Just like organs inside the body

Key Difference (tags Vs Elements)

TagElement
<p><p>Hello</p>
Only instructionInstruction + content
HTML Elements | HTML | Learn Syntax