Originally published on CodingCush.
HTML is the language that gives a web page its structure. It stands for HyperText Markup Language. Tags are small labels that tell the browser "this is a heading" or "this is a paragraph", and the browser turns those labels into the page you see. HTML does not decide colours or layouts, and it does not make buttons do things when clicked. It builds the skeleton. The rest is added on top.
First, What a Tag Actually Is
A tag is a short instruction inside angle brackets, like <p>. Most tags come in pairs: open <p>, write text, close </p>. The three parts together are called an element. Here is the smallest one:
<p>Chai is ready.</p>
Expected output: one plain line: "Chai is ready." Some tags carry attributes, extra information inside the opening tag, such as lang="en", which says the page is in English. The MDN guide to creating the content of your first page explains the same idea.
The Skeleton: Every Page Starts the Same Way
Every web page starts with the same skeleton. We will build one page for a made up tea shop, Sharma Chai Stall, growing it tag by tag. The shop and prices are invented. Here it is:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sharma Chai Stall</title>
</head>
<body>
</body>
</html>
Expected output: a blank page whose tab reads "Sharma Chai Stall". <!DOCTYPE html> tells the browser this is a modern HTML page. <html> wraps the whole page. The <head> holds unseen information, such as the tab title, while the <body> holds everything visitors see. Save this skeleton for every page you build.
Adding the Heading and the Welcome
Now the first real content goes inside the body. Headings run from <h1>, the biggest, down to <h6>, the smallest. A page has exactly one <h1>, the page name. Add these inside the body:
<h1>Sharma Chai Stall</h1>
<p>Hot chai, fresh bun maska, and good company on Station Road since 2015.</p>
Expected output: a large bold heading, "Sharma Chai Stall", with a smaller line under it. The browser makes the heading big and bold all by itself. Our guide to what Tailwind CSS is, explained simply shows how small classes can style a page like this one.
Adding the Menu as a List
A stall without a menu is just a kettle. An ordered list, <ol>, numbers its items. An unordered list, <ul>, puts a bullet in front of each item, which suits a menu. Each item goes inside an <li> tag. Add this next:
<h2>Our Menu</h2>
<ul>
<li>Masala Chai</li>
<li>Adrak Chai</li>
<li>Cutting Chai</li>
<li>Bun Maska</li>
</ul>
Expected output: a smaller heading, "Our Menu", over four bulleted lines. Swap <ul> for <ol> and the bullets become numbers.
Adding a Photo and a Link
Next, a photo and a link. The image tag is the odd one out: no closing tag, no text inside it, everything from attributes:
<img src="chai.jpg" alt="A hot cup of masala chai at Sharma Chai Stall">
The src attribute says where the picture lives, and alt says what it shows. If the picture fails to load, the browser shows the alt text instead, and screen readers read it aloud. Never skip it. Here chai.jpg does not exist yet, so the browser shows a broken picture icon with the alt text beside it. Add a real photo named chai.jpg to the same folder and it appears.
The anchor tag, <a>, wraps text, and its href says where the link goes:
<p>Come and visit us, or <a href="https://codingcush.com">learn to build pages like this one</a>.</p>
Expected output: a line of text with a blue underlined link in it. That is the "HyperText" in HTML: text that links to other pages.
The MDN page "HTML: Creating the content", which defines HTML and lists elements and attributes as learning outcomes.
Adding the Price List as a Table
A menu says what exists, a price list says what it costs, and that job belongs to a table. Tables are built from rows of cells. The header row uses <th> cells, shown in bold, and the other rows use <td> cells. Add this next:
<h2>Price List</h2>
<table>
<tr>
<th>Item</th>
<th>Price</th>
</tr>
<tr>
<td>Masala Chai</td>
<td>Rs. 10</td>
</tr>
<tr>
<td>Adrak Chai</td>
<td>Rs. 15</td>
</tr>
<tr>
<td>Cutting Chai</td>
<td>Rs. 7</td>
</tr>
<tr>
<td>Bun Maska</td>
<td>Rs. 20</td>
</tr>
</table>
<p>Open every day, 6 in the morning to 10 at night.</p>
Expected output: a neat two column table with a bold header row, four rows of prices, and a closing line about the opening hours. Never use a table to lay out a whole page. Tables are for data in rows and columns, like prices. Layout is a CSS job, and our guide to how to center a div in CSS shows how CSS takes over once HTML has done the structure.
The Finished Page, All Together
That is the whole stall. Here is the complete page. Save it as chai-stall.html and open it in your browser:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sharma Chai Stall</title>
</head>
<body>
<h1>Sharma Chai Stall</h1>
<p>Hot chai, fresh bun maska, and good company on Station Road since 2015.</p>
<h2>Our Menu</h2>
<ul>
<li>Masala Chai</li>
<li>Adrak Chai</li>
<li>Cutting Chai</li>
<li>Bun Maska</li>
</ul>
<img src="chai.jpg" alt="A hot cup of masala chai at Sharma Chai Stall">
<p>Come and visit us, or <a href="https://codingcush.com">learn to build pages like this one</a>.</p>
<h2>Price List</h2>
<table>
<tr>
<th>Item</th>
<th>Price</th>
</tr>
<tr>
<td>Masala Chai</td>
<td>Rs. 10</td>
</tr>
<tr>
<td>Adrak Chai</td>
<td>Rs. 15</td>
</tr>
<tr>
<td>Cutting Chai</td>
<td>Rs. 7</td>
</tr>
<tr>
<td>Bun Maska</td>
<td>Rs. 20</td>
</tr>
</table>
<p>Open every day, 6 in the morning to 10 at night.</p>
</body>
</html>
Expected output: the full stall page, in the order the tags appear in the file. That order is the whole secret of HTML.
Common HTML Tags at a Glance
Here are the tags in one place. The MDN HTML reference lists every element with a full page of its own.
| Tag | What it does | Used in our stall page |
|---|---|---|
<h1> to <h6> |
Headings, biggest to smallest | The stall name and section titles |
<p> |
A paragraph | The welcome and the closing line |
<ul> and <li>
|
A bulleted list | The menu |
<a> |
A link | The "learn to build pages" link |
<img> |
A picture | The chai photo placeholder |
<table>, <tr>, <th>, <td>
|
A table and its rows and cells | The price list |
Common Mistakes Beginners Make
- Forgetting a closing tag. If a whole page turns bold or becomes one giant link, a closing tag is missing above it.
-
Nesting tags in the wrong order. Tags must close in the reverse of the order they opened, like
<p><strong>text</strong></p>. -
Using two
<h1>tags. A page gets one main heading. Use<h2>and<h3>for sections, in order. Size is a CSS job. -
Skipping alt text on images. An
<img>withoutaltleaves screen reader users with nothing, and a blank hole when the picture fails. -
Writing a whole page inside the head. Nothing in the
<head>shows on screen. If your page opens blank but the tab title is right, your content is in the head by mistake.
Frequently Asked Questions
Is HTML a programming language?
No. HTML is a markup language. It describes and structures content, but it cannot make decisions or react to a click. That work belongs to JavaScript.
Do I need to learn HTML before CSS and JavaScript?
Yes, in that order. CSS styles the HTML you write, and JavaScript changes it.
Can I build a website with only HTML?
Yes. Our chai stall page is proof. It will look plain, but it will work in every browser, and you can style it with CSS later.
What should I learn after HTML?
Learn CSS next, then JavaScript. After that, our guide on what Django is, explained simply shows how a web framework turns pages like this one into a full working site.
Conclusion
HTML is a small set of tags that turn plain words into a structured page. You built a whole chai stall page with about a dozen of them. Save the finished page, make it your own, and you will have built your first real web page. Then learn CSS, and watch it come alive. Learning HTML for a job? Read our guide on how to get your first IT job as a fresher.

Top comments (0)