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 2 of 35

Best Free HTML Editors: Notepad to VS Code for Beginners

3 min read · Free · No login needed

You write HTML in a text editor. Any plain text editor works, but some editors make learning much easier because they colour the tags, complete your code, and show mistakes early.

Diagram — see how it fits together
Infographic: picking an HTML editor

Option 1: Notepad (Windows)

Notepad comes free with Windows. Open it, type your HTML, then save the file with Save As and choose the file type All Files. Name it index.html. Then double-click the file — it opens in your browser. Notepad is simple, but it has no colour coding and no hints, so it is slow for real work.

Option 2: VS Code (recommended)

Visual Studio Code is free, from Microsoft, and it is the editor most developers use. It colours your tags, closes them automatically, and shows errors as you type. Install it from code.visualstudio.com, open a folder, create a file called index.html, and start typing. VS Code even suggests tag names as you type them.

Other good editors

  • Notepad++ — free, light, and fast on Windows.
  • Sublime Text — fast and clean, free to try.
  • Brackets — built for web design, with a live preview.

Whichever editor you choose, remember two things: save the file with the .html extension, and refresh the browser after every change to see the result.

Tip: In VS Code, type ! and press Tab — it writes a full basic HTML page for you in one second.

What an editor does for you

A code editor is just a text editor that understands code. It colours the tags, highlights mistakes, and helps you close tags you forgot. It does not run the code — the browser does that. The editor only helps you write it correctly and quickly.

Syntax — file names that work

When you save, the file name matters. Use small letters, no spaces, and end with .html. For example, mypage.html is good. My Page.html is bad — spaces in file names cause problems when you upload the page to a server later.

mypage.html      (good)
my-first-page.html (good)
My Page.html     (bad — has a space)
page1.txt        (bad — wrong ending)
Note: Never write HTML in Microsoft Word or WordPad. Those programs add invisible formatting that breaks your code. Use a plain text editor or a code editor only.
Tip: In VS Code, install the "Live Server" extension. It opens your page in the browser and refreshes it automatically every time you save. That saves hundreds of clicks while you practise.

Remember

  • Save your file often — every few lines is a good habit.
  • Keep the file name in small letters with no spaces.
  • The file must end with .html, not .txt.
  • To see your page, double-click the file — it opens in your default browser.

Example explained

  • <!DOCTYPE html> — the first line. It tells the browser this is an HTML5 document, so the page is read the modern way.
  • <html> ... </html> — the root element that holds the whole page.
  • <head> and <title>My Page</title> — the title shows on the browser tab. The head itself never appears on the page.
  • <body> ... </body> — the visible part of the page.
  • <h1>Welcome</h1> — the main heading, the first thing the visitor reads.
  • <p>I wrote this page in my editor.</p> — a paragraph of text. Save this file as mypage.html and double-click it to see it in your browser.

Example

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

<h1>Welcome</h1>
<p>I wrote this page in my editor.</p>

</body>
</html>

Output

Output — how it looks in the browser
Output of Best Free HTML Editors: Notepad to VS Code for Beginners

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. Which editor is recommended for learning HTML?

Visual Studio Code is recommended. It is free, colours your tags, closes them automatically, and shows errors as you type.

2. Can I write HTML in Notepad?

Yes. Notepad comes free with Windows. Save with Save As, choose All Files, and name the file index.html.

3. Can I write HTML in Microsoft Word?

No. Word and WordPad add invisible formatting that breaks your code. Use a plain text editor or a code editor only.

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. Which editor is recommended in this lesson?

VS Code is free, colours your tags, closes them automatically and shows errors as you type.

2. What should you NEVER write HTML in?

Word and WordPad add invisible formatting that breaks your code. Use a plain text editor or a code editor only.

3. In VS Code, what does typing ! and pressing Tab do?

Type ! and press Tab — VS Code writes a full basic HTML page for you in one second.

4. What is a good file name for an HTML page?

Use small letters, no spaces, and end with .html — mypage.html is good; My Page.html is bad.

5. What does a code editor NOT do?

The editor only helps you write code correctly and quickly. The browser runs it.

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. Which editor do you use for HTML, and why?

Visual Studio Code. It is free, colours the tags, closes them automatically, shows errors as I type, and suggests tag names. For a beginner, Notepad also works, but VS Code makes learning much faster.

2. Why should you never write HTML in Microsoft Word?

Word adds invisible formatting to the text — fonts, styles, special characters — which breaks the code. HTML must be written in a plain text editor or a code editor, never in a word processor.

3. What is the shortcut in VS Code to create a basic HTML page?

Type ! and press Tab — VS Code writes a full basic HTML page (DOCTYPE, html, head, title, body) in one second.

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. Save it right

Create a page, save it as mypage.html (small letters, no spaces, ending with .html), and open it in your browser. The page must show a heading and a paragraph.

Hint: In VS Code, type ! and press Tab to get the basic page, then add your content. The file name must be small letters, no spaces, ending with .html.
Open the live editor
Show solution
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
</head>
<body>
<h1>Hello, I am learning HTML</h1>
<p>This page is saved as mypage.html and opens in my browser.</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.

Full Stack PHP Development Course 2026
₹3,000
View
Ethical Hacking & Cyber Security Workshop
View
CapCut Mobile Video Editing Course Beginner to Advance
₹99
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 →