What is an HTML Tag?
An HTML tag is a special word written inside angle brackets < >. It tells the browser what to do with the content.
HTML tags are used to create and structure a web page.
<h1>Hello World</h1>- <h1> → opening tag
- </h1> → closing tag
- Hello World → content
Types of HTML Tags
- Opening Tags (Start an Element)
<p>- Closing Tags (End an Element)
</p>- Self Closing Tags (Does not need a closing tag)
<br/>
<img/>HTML Tag with Human Body Example
| HTML Tag | Human Body | Meaning |
| <html> | Whole body | Complete webpage |
| <head> | Brain | Information |
| <title> | Name | Page title |
| <body> | Body | Visible part |
| <h1> | Head | Main heading |
| <p> | Mouth | Talking |
| <img> | Eyes | Seeing images |
| <a> | Hands | Connecting pages |
