HTML COURSE โข LESSON 2
HTML Editors
An HTML editor is a program that allows you to write and edit HTML code.
Simple Text Editors
You can write HTML using a simple text editor such as:
- Notepad
- Notepad++
- Visual Studio Code
- Sublime Text
๐ป Recommended Editor
Visual Studio Code is a popular free code editor with useful extensions, code suggestions and file management.
Create Your First HTML File
1
Open your code editor
Open Visual Studio Code or another text editor.
2
Create a new file
Create a new empty document.
3
Write HTML code
Type the following code into the file.
index.html
<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
</head>
<body>
<h1>Welcome to My Website</h1>
</body>
</html>
4
Save the file
Save the file using the name index.html.
โ Important
The file extension must be .html.
Do not save it as index.txt.
5
Open the file
Double-click the HTML file to open it in a web browser.