HTML/HTML Basics

HTML Tags

Updated on January 6, 2026
1 min read

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

  1. Opening Tags (Start an Element)
<p>
  1. Closing Tags (End an Element)
</p>
  1. Self Closing Tags (Does not need a closing tag)
<br/>
<img/>

HTML Tag with Human Body Example

HTML TagHuman BodyMeaning
<html>Whole bodyComplete webpage
<head>BrainInformation
<title>NamePage title
<body>BodyVisible part
<h1>HeadMain heading
<p>MouthTalking
<img>EyesSeeing images
<a>HandsConnecting pages

HTML Tags | HTML | Learn Syntax