Visual Studio Code (VSCode) is a popular text editor for web development. To set it up:
The Live Server extension allows you to run a local development server and see changes in real-time in your browser.
Follow these steps to write a simple HTML file and run it using Live Server:
index.html
.index.html
:<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My First Web Page</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is a simple HTML page served by Live Server.</p>
</body>
</html>
index.html
file in the VSCode editor and select Open with Live Server.index.html
will be automatically reflected in the browser.