Basic HTML Tags Explained (h1 to h6, p, img, a, button) – Simple Beginner Guide
Get link
Facebook
X
Pinterest
Email
Other Apps
-
If you are just starting with HTML, don’t worry — you don’t need to learn everything at once. With just a few basic tags, you can already build your first simple webpage. In this blog, we will learn the most important HTML tags in a very easy and practical way: h1 to h6, p, img, a, and button.
π§ What Are HTML Tags?
-HTML tags are like instructions that tell the browser what to show on the screen.
For example:
If you want to show a heading → use a heading tag
If you want to show text → use a paragraph tag
If you want to show an image → use an image tag
So basically, HTML tags help us build the structure of a webpage.
Heading Tags (h1 to h6)
-Heading tags are used to write titles and headings on a webpage.
-There are 6 levels of headings, from biggest to smallest.
html
<h1>Main Heading</h1>
<h2>Sub Heading</h2>
<h3>Section Heading</h3>
<h4>Smaller Heading</h4>
<h5>Very Small Heading</h5>
<h6>Smallest Heading</h6>
π How to understand this easily:
h1 → Main title of the page (use only once)
h2→ Main sections (like About, Services)
h3–h6→ Smaller sections and details
Think of it like a book:
h1 = Book title
h2 = Chapters
h3 = Subtopics
-This helps organize your content properly.
Paragraph Tag (p)
-The <p> tag is used to write normal text or paragraphs.
html
<p>This is a paragraph.</p>
π Where to use:
About section
Descriptions
Any normal text on your page
-It automatically gives some spacing, so your text looks clean and readable.
Image Tag (img)
-The <img> tag is used to display images on your webpage.
π»Setup Guide: VS Code, Live Server & Project Folder π Introduction : Before starting coding, we need some basic tools. These tools help us write code and run websites easily. In this guide, we will learn: - VS Code - Live Server - Project folder . π₯️ 1. VS Code (Code Editor): VS Code is a place where we write code. We use it to create websites and programs.π‘ Why we use VS Code: - It is free It is easy for beginners It helps us write code properly π Simple meaning: VS Code is where we write our code. π 2. Live Server: Live Server helps us see our website in the browser. It shows the result of our code instantly. Benefits: Shows website in browser Updates automatically when we save No need to refresh again and again π Simple meaning: Live Server shows your website live. π 3. Project Folder: A project folder is where we keep a...
HTML is the basic building block of websites. In this simple guide, you will learn what HTML is, how it works, and why it is important for beginners. Easy explanation with examples. Introduction: -HTML is the basic building block of every website. -Whenever you open a website, the structure you see is created using HTML. -HTML stands for "Hyper Text Markup Language". -It is not a programming language, but a "mark9 What does HTML do? -HTML is used to create the "structure of a webpage". -It tells the browser: what is a heading what is a paragraph where images or links should be placed -In simple words,"HTML decides how content is arranged on a webpage". What are Tags in HTML? -HTML works using "tags". -Tags are special keywords written inside angle brackets < >. Examples: <h1> → used for headings <p> → used for paragraphs <body> → contains visible content Most tags have: an opening tag → <p> a closing tag...
Comments
Post a Comment