HTML Development Environment Setup

Setting Up Your HTML Development Environment

If you're just starting out with web development, the best part is: getting set up for HTML is incredibly simple. You don’t need any fancy software or expensive tools — just a browser and a code editor.

Step 1: Choose a Code Editor

You can write HTML using any text editor. But for a smoother experience, choose a code editor that helps you write cleaner, faster, and more organized code.

Popular Editors:

  • Visual Studio Code (VS Code): Lightweight, free, and packed with extensions.
  • Sublime Text: Fast and elegant.
  • Notepad++: Simple and lightweight.

For this tutorial, we'll use Visual Studio Code (VS Code).

Step 2: Create a Project Folder

Let’s keep things organized from the start. Create a folder on your desktop and name it something like my-first-html. This is where you’ll save all your HTML files.

Step 3: Create Your First HTML File

Open VS Code. Click File → New File, and save it as index.html inside your project folder.

Now, type the following HTML code into the file:

<!DOCTYPE html>
<html>
  <head>
    <title>My First HTML Page</title>
  </head>
  <body>
    <h1>Hello World</h1>
    <p>Welcome to my first webpage!</p>
  </body>
</html>

This page includes a simple heading and a paragraph. It's your first interaction with how browsers read HTML — simple yet magical.

Step 4: View Your HTML Page in a Browser

Once your file is saved, right-click on index.html and select Open with → Google Chrome (or any browser you like).

First HTML File

Step 5: Make Some Changes

Let’s edit the file to explore HTML further. Replace the previous content with this:

<!DOCTYPE html>
<html>
  <head>
    <title>Fruit List</title>
  </head>
  <body>
    <h1>Fruits I Like</h1>
    <ul>
      <li>Apple</li>
      <li>Banana</li>
      <li>Cherry</li>
    </ul>
  </body>
</html>
View Your HTML Page in a Browser

You just created a list using HTML. It’s intuitive, readable, and beginner-friendly. This is how HTML lets you build structured content — one element at a time.

What Did You Learn?

Let’s break down what you’ve achieved:

  • Installed and launched a code editor (VS Code)
  • Created a project folder and saved your first HTML file
  • Wrote your first webpage using proper structure and tags
  • Opened the file in a browser and saw live results

Tips for a Smoother Start

  • Always use .html as the file extension so your browser recognizes the file type.
  • Use indentation to keep your code readable.
  • Don’t worry about making mistakes — HTML is very forgiving. Try, reload, and learn.

Check your understanding 1

Which of the following tools is most commonly used to write and edit HTML files?
Choose one answer. You can try again.

Answer and explanation

Visual Studio Code

Visual Studio Code is a powerful, free source-code editor that supports HTML, CSS, JavaScript, and more. It includes features like syntax highlighting, extensions, and live server plugins that make HTML development smooth and beginner-friendly.

Check your understanding 2

You need an internet connection to create and run HTML files locally.
Choose one answer. You can try again.

Answer and explanation

False

HTML files can be created and run locally using just a text editor and a web browser. No internet is needed unless you're loading external resources or working with live hosting.

Check your understanding 3

Choose the option that lists all and only the correct statements.

  1. Text Editor
  2. Web Browser
  3. Database System
  4. Live Server Extension (Optional)
Which components are necessary to set up a basic HTML development environment?
Choose one answer. You can try again.

Answer and explanation

Statements 1 and 2 and 4

To start developing in HTML, you mainly need a text editor (like VS Code), a web browser to view the results, and optionally a Live Server extension to automatically reload the page on save. A database is not required unless backend functionality is involved.

Check your understanding 4

After saving the following HTML file as index.html, how do you open it in your browser? <!DOCTYPE html> <html> <head><title>Test</title></head> <body><h1>Hello, India!</h1></body> </html>
Choose one answer. You can try again.

Answer and explanation

Double-click the file or open with your web browser

You can double-click the HTML file or right-click and choose ‘Open with’ your browser to view it. No compilation or developer tools are needed to run plain HTML.

Check your understanding 5

All HTML files must start with the tag <html> immediately.
Choose one answer. You can try again.

Answer and explanation

False

An HTML file typically starts with <!DOCTYPE html>, which tells the browser you're using HTML5. Only then does it proceed to <html>, <head>, and <body> tags.

Check your understanding 6

Choose the option that lists all and only the correct statements.

  1. .html
  2. .htm
  3. .webpage
  4. Using Save As > All Files with .html extension in Notepad
Which of the following are valid file extensions or methods to save an HTML page?
Choose one answer. You can try again.

Answer and explanation

Statements 1 and 2 and 4

You can save an HTML file using .html or .htm extensions. If you're using basic editors like Notepad, choose Save As > All Files and give it a .html name. .webpage is not a valid file extension for HTML.

Next Steps

Now that your environment is ready, the real fun begins. You’ll start exploring links, images, tables, forms, and layout designs. It all starts here — with this simple yet powerful setup.

The web is built with HTML. And now, you know how to build the web.

Reaching the recap and completing the quizzes are separate milestones.

    Next lesson: HTML Syntax and Structure →