SA-21/06, C-11, Asapur, Varanasi, UP support@kamaldnp.com +91 8318013442
HTML
1. HTML Introduction: What is HTML? Learn with Examples 2. Best Free HTML Editors: Notepad to VS Code for Beginners 3. HTML Basic Structure: Doctype, Head, Body Explained 4. HTML Elements Explained: Tags, Content & Empty Elements 5. HTML Attributes List: href, src, alt, width, title & More 6. HTML Headings h1 to h6: Which Heading Tag to Use When 7. HTML Paragraphs: p Tag, br Line Breaks & pre Text 8. HTML Style Attribute: Colour, Font Size & Alignment 9. HTML Text Formatting Tags: bold, italic, mark & More 10. HTML Comments: How to Add Notes & Hide Code in HTML 11. HTML Colors: Names, HEX, RGB & HSL Colour Codes 12. HTML CSS: Inline, Internal & External Stylesheets 13. HTML Links: a Tag, href, New Tab & Email Links 14. HTML Images: img Tag, src, alt, Width & Formats 15. HTML Favicon: Create & Add a Browser Tab Icon 16. HTML Title Tag: How to Write a Good Page Title 17. HTML Tables: table, tr, th, td, colspan & rowspan 18. HTML Lists: ul, ol, dl & Nested Lists Explained 19. HTML Block vs Inline Elements: div, p, span Explained 20. HTML Div Tag: Group Content & Build Page Layouts 21. HTML Class Attribute: Style Many Elements at Once 22. HTML id Attribute: Unique IDs, Links, CSS & JavaScript 23. HTML Iframes: Embed YouTube, Maps & Pages in HTML 24. HTML JavaScript: script Tag, Clicks & First Example 25. HTML File Paths: Relative vs Absolute Paths Explained 26. HTML Head Element: title, meta, charset & viewport 27. HTML Layout: header, nav, main, footer Page Structure 28. HTML Responsive Design: Viewport, Images & Media Queries 29. Semantic HTML Tags: header, nav, main, article & footer 30. HTML Forms: input, label, select, checkbox & Submit 31. HTML Entities: & < > © with Examples 32. HTML Audio & Video Tags: controls, source & Fallback 33. HTML Accessibility: alt Text, Labels, Landmarks & ARIA 34. HTML Meta Tags & SEO: charset, viewport, OG Tags 35. HTML Quotations: blockquote, q, cite, abbr & address
Final Test — Certificate ₹10
Try this code live
Lesson 1 of 35

HTML Introduction: What is HTML? Learn with Examples

4 min read · Free · No login needed

HTML stands for HyperText Markup Language. It is the standard language used to create web pages. Every website you open — Google, YouTube, kamaldnp.com — is built on HTML at its core.

Diagram — see how it fits together
Infographic: how a web page is built from HTML, CSS and JavaScript

HTML is not a programming language. It is a markup language. That means you do not write logic or calculations in it. You write tags that tell the browser what each part of the page is: this is a heading, this is a paragraph, this is a picture, this is a link.

How a web page works

When you type a website address, your browser asks a server for the page. The server sends back an HTML file. The browser reads the tags in that file and draws the page on your screen — text, images, buttons, and all.

HTML works together with two other technologies. CSS controls how the page looks — colours, fonts, spacing. JavaScript controls how the page behaves — clicks, animations, and forms. You will meet both later in this course, but HTML always comes first, because it is the skeleton of the page.

What you need to start

You need only two free tools: a text editor (like Notepad on Windows, or VS Code) and a web browser (like Chrome). Write the code, save the file with a .html ending, and open it in the browser. That is all. No internet connection is needed to practise.

Tip: In this course every lesson has a small example and a picture of its output. Try typing the example yourself instead of only reading it — that is how the tags stay in your memory.

What HTML actually is

HTML is the language that gives a web page its structure. Think of a house: HTML is the walls, the rooms, and the doors. CSS is the paint and the furniture. JavaScript is the electricity and the moving parts. Without HTML there is no page at all — only an empty browser window.

Syntax — the smallest complete page

Every HTML page follows the same skeleton. It starts with <!DOCTYPE html>, which tells the browser this is a modern HTML5 page. Then comes <html>, which holds everything. Inside it are two parts: <head> for information about the page, and <body> for everything you see on the screen.

<!DOCTYPE html>
<html>
<head><title>My page</title></head>
<body><h1>Hello</h1></body>
</html>
Note: The first line, <!DOCTYPE html>, is not a tag — it is a declaration. It must be the very first line of the file, with nothing before it, not even a blank line.
Tip: In Chrome, right-click any page and choose "View page source". You will see the real HTML of a real website. Try it on your favourite site and spot the tags you already know.

Remember

  • HTML gives structure only — it does not decide colours or fonts. That is CSS.
  • HTML is not a programming language, so there are no variables or loops in it.
  • Always save your file with the .html ending, or the browser will treat it as plain text.
  • One file is one page. A website is simply many HTML files linked together.

Example explained

  • <!DOCTYPE html> — the very first line. It tells the browser this is a modern HTML5 page, so the browser knows how to read it.
  • <html> ... </html> — the root element. Everything on the page sits inside this pair of tags.
  • <head> and <title>My First Page</title> — the title text appears on the browser tab, not on the page itself. Nothing inside the head is visible on the screen.
  • <body> ... </body> — everything the visitor actually sees goes inside the body.
  • <h1>Hello, World!</h1> — the main heading of the page, shown in large bold text.
  • <p>This is my first web page.</p> — a paragraph of normal text under the heading.

Example

Example
<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>

<h1>Hello, World!</h1>
<p>This is my first web page.</p>

</body>
</html>

Output

Output — how it looks in the browser
Output of HTML Introduction: What is HTML? Learn with Examples

Try it yourself — live editor

Change the code below and press Run to see the result instantly. No file to save, no login needed.

Result

Frequently asked questions

The questions learners ask most about this lesson — read the question, then open it to see the answer.

1. What is HTML?

HTML stands for HyperText Markup Language. It is the standard language used to create web pages.

2. Is HTML a programming language?

No. HTML is a markup language, so you write tags that tell the browser what each part of the page is, not logic or calculations.

3. What do I need to start writing HTML?

You need only two free tools: a text editor like Notepad or VS Code, and a web browser like Chrome. No internet connection is needed to practise.

Check yourself — did you get it?

Finished the lesson? Test yourself with 5 quick questions — you get the answer instantly, with the reason for each one.

1. What does HTML stand for?

HTML = HyperText Markup Language — the standard language used to create web pages.

2. Is HTML a programming language?

HTML is a markup language — it describes the structure of a page, not logic or calculations.

3. Which line must be the very first line of an HTML file?

<!DOCTYPE html> is a declaration, not a tag — it must be the very first line of the file, with nothing before it.

4. In the house analogy, what is HTML?

HTML is the structure (walls, rooms, doors); CSS is the paint and furniture; JavaScript is the electricity.

5. Which file ending must an HTML file have?

Always save with the .html ending, or the browser will treat the file as plain text.

Interview questions — can you answer these?

Read the question first, try to answer it in your own words, then open it to check. These are the questions interviewers actually ask.

1. What is HTML?

HTML (HyperText Markup Language) is the standard language used to create web pages. It describes the structure of a page — headings, paragraphs, links, images and forms. It is not a programming language; it is a markup language.

2. Is HTML a programming language? Why or why not?

No. A programming language has logic — variables, loops, conditions. HTML has none of that. It only marks up content so the browser knows how to display it. JavaScript is the programming language of the web, not HTML.

3. What is the difference between HTML, CSS and JavaScript?

HTML is the structure (walls, rooms, doors of a house), CSS is the presentation (paint, furniture, decoration), and JavaScript is the behaviour (electricity, moving parts — things that change and respond).

Try it yourself — build this

Reading is not enough — now build it yourself. Write the code in the live editor, run it, check the hint if you get stuck, and open the solution only after you have tried.

1. Build your first page

Create a page: the title must be "My First Page", the <h1> must have your name, and a <p> must say what you want to learn.

Hint: Start with <!DOCTYPE html>, then <html>, <head> with <title>, and <body> with your heading and paragraph.
Open the live editor
Show solution
<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Rahul Verma</h1>
<p>I want to learn HTML and build my own website.</p>
</body>
</html>

Why learn this yourself — and not just ask AI?

AI can write code for you, but it cannot think for you. When you learn HTML yourself, your brain builds the real skill: you understand why a page looks the way it does, you can fix it when it breaks, and you can answer it in an exam or an interview without help. That is the skill that gets you a job — not a copied answer.

Get certified — just ₹10

Finish all 35 lessons, pass the test (80%), pay ₹10 and get your certificate.

Take the test

Prefer watching? Video courses teach the same topics step by step.

Go further with a full course

Free tutorials teach you the basics. Our paid courses add live projects, mentorship and a certificate.

Ethical Hacking & Cyber Security Workshop
View
Advanced Cyber Security Industrial Training
₹5,000
View
Summer Industrial Training in MERN Stack 2026
₹3,000
View
Browse all courses
HTML — Lessons
1. HTML Introduction: What is HTML? Learn with Examples 2. Best Free HTML Editors: Notepad to VS Code for Beginners 3. HTML Basic Structure: Doctype, Head, Body Explained 4. HTML Elements Explained: Tags, Content & Empty Elements 5. HTML Attributes List: href, src, alt, width, title & More 6. HTML Headings h1 to h6: Which Heading Tag to Use When 7. HTML Paragraphs: p Tag, br Line Breaks & pre Text 8. HTML Style Attribute: Colour, Font Size & Alignment 9. HTML Text Formatting Tags: bold, italic, mark & More 10. HTML Comments: How to Add Notes & Hide Code in HTML 11. HTML Colors: Names, HEX, RGB & HSL Colour Codes 12. HTML CSS: Inline, Internal & External Stylesheets 13. HTML Links: a Tag, href, New Tab & Email Links 14. HTML Images: img Tag, src, alt, Width & Formats 15. HTML Favicon: Create & Add a Browser Tab Icon 16. HTML Title Tag: How to Write a Good Page Title 17. HTML Tables: table, tr, th, td, colspan & rowspan 18. HTML Lists: ul, ol, dl & Nested Lists Explained 19. HTML Block vs Inline Elements: div, p, span Explained 20. HTML Div Tag: Group Content & Build Page Layouts 21. HTML Class Attribute: Style Many Elements at Once 22. HTML id Attribute: Unique IDs, Links, CSS & JavaScript 23. HTML Iframes: Embed YouTube, Maps & Pages in HTML 24. HTML JavaScript: script Tag, Clicks & First Example 25. HTML File Paths: Relative vs Absolute Paths Explained 26. HTML Head Element: title, meta, charset & viewport 27. HTML Layout: header, nav, main, footer Page Structure 28. HTML Responsive Design: Viewport, Images & Media Queries 29. Semantic HTML Tags: header, nav, main, article & footer 30. HTML Forms: input, label, select, checkbox & Submit 31. HTML Entities: & < > © with Examples 32. HTML Audio & Video Tags: controls, source & Fallback 33. HTML Accessibility: alt Text, Labels, Landmarks & ARIA 34. HTML Meta Tags & SEO: charset, viewport, OG Tags 35. HTML Quotations: blockquote, q, cite, abbr & address
Final Test — Certificate ₹10

🤖 KAMALDNP AI Assistant

Ask about courses, website & more

Hi! I'm KAMALDNP AI Assistant. Ask me about our courses, website features, or anything else! 😊
Please wait 5s...
🤖 KAMALDNP Assistant ✕

Request human callback:

🔐 Login Required
✕

Please log in to download. You will stay on this page after logging in!

New here? Register now →