HTML is a standard document format that tells a computer browser how to render and display a webpage. The documents themselves are plain text files containing special markup "tags" and codes that a web browser parses, interprets, and renders on your computer monitor, tablet, or smartphone screen.
Plain Text Format: An HTML file is an uncompiled text file containing structured markup tags.
Browser Interpretation: The tags tell the web browser exactly how to render text, images, multimedia, and layout elements.
File Extension: An HTML file must always be saved with an .htm or .html file extension.
Zero Paid Tools: To write HTML, any text editor can be used (Notepad, Notepad++, Visual Studio Code, Sublime Text), and to view the output, any modern web browser (Google Chrome, Mozilla Firefox, Microsoft Edge, Apple Safari) is sufficient.
Choosing the right code editor boosts your productivity, eliminates syntax errors, and speeds up your development workflow:
| Editor | Best For | Key Features |
|---|---|---|
| Visual Studio Code (VS Code) | Modern Developers & Serious Learners | Free, built-in Emmet abbreviations, live preview plugins (Live Server), Git integration, syntax highlighting. |
| Notepad++ | BCA Practical College Labs | Extremely lightweight, runs on low-spec college lab PCs, tabbed editing, multi-language syntax color coding. |
| Windows Notepad | University Exam Hall / Quick Edits | Comes pre-installed on every Windows PC. Zero installation needed, ensuring you can write code anywhere. |
| Sublime Text | Speed & Minimalist Interface | Blazing fast startup, distraction-free writing, powerful search and replace capabilities. |
Press the Windows Key + R, type notepad, and hit Enter. Alternatively, open VS Code or Notepad++ if installed on your computer.
Type the following clean HTML5 code directly into your editor:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My First HTML Webpage - Veewom</title>
</head>
<body>
<h1>Welcome to Veewom HTML Class</h1>
<p>Congratulations! You have successfully created and configured your first HTML web page.</p>
<p>HTML is straightforward, lightweight, and universally supported.</p>
</body>
</html>
In Notepad, click File > Save As...:
C:\HTML_Practice\ or your Desktop).first.html.txt and the browser won't open it as a webpage).first.html or index.html.Navigate to your folder, right-click on first.html, and select Open with > Google Chrome (or Firefox / Edge). You will immediately see your rendered webpage!
F12 or Ctrl + Shift + I in Chrome/Edge to open Developer Tools. In the "Elements" tab, you can inspect the live DOM tree, test real-time style changes, and simulate mobile viewports!
Problem Statement: Create a project folder named college-portal. Inside it, create two files: home.html and courses.html. Add navigation links between both pages so clicking "View Courses" takes the visitor to the courses page, and clicking "Back to Home" returns them.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>College Portal - Home</title>
</head>
<body>
<h1>Department of Computer Applications</h1>
<p>Welcome to our academic student portal.</p>
<a href="courses.html">View Available Courses →</a>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>College Portal - Courses</title>
</head>
<body>
<h1>BCA Course Curriculum</h1>
<p>Semester 1: Computer Fundamentals, Programming in C, HTML & Web Design.</p>
<a href="home.html">← Back to Home Page</a>
</body>
</html>
index.html (or index.php) when a user visits a domain or directory URL without specifying a file name (e.g., visiting https://example.com/ automatically loads https://example.com/index.html).
.txt extension (e.g., index.html.txt) or if angle brackets were accidentally written as entity references like < instead of <. Check file extensions in Windows File Explorer under "View > File name extensions".