To create web pages, you need a text editor to write HTML code. While you can write HTML in basic system text editors, professional developers use dedicated code editors to write code faster and with fewer errors.
index.html.! and press Tab or Enter to generate an HTML5 boilerplate template automatically.<body> tag.Ctrl + S or Cmd + S) and open it in your browser.<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML Editors Guide</title>
</head>
<body>
<h1>Writing HTML in a Code Editor</h1>
<p>Using VS Code helps developers format code automatically and spot unclosed tags quickly.</p>
</body>
</html>
index.html might turn into index.html.txt. Make sure file extension visibility is turned on in your operating system settings.Download and install VS Code (or open Notepad), create a file named practice.html, write a simple heading and paragraph, and open the file in your browser!
Sign in to track your learning journey, earn industry-recognized certificates, and join our elite developer community.
Quick Access With
Experiment with the code from this lesson in our interactive playground.
You've completed this section! Take a quick 5-question quiz to check your understanding.