Download and Install VS Code.
Download Visual Studio Code User Installer 64 bit and install downloaded file
VSCodeUserSetup-x64-1.66.2.exe
Accept the agreement
Click Next
Click Install
Click Finish
Start Visual Studio Code Program. type code in the search box.
Open an empty folder as a project.
Create hello.html file in your project.
Write the following code.
Open hello.html file in a browser.
Output looks like below.
Congratulations! you successfully write html code in Visual Studio Code editor and run HTML in a browser.
Learning with HTML Editor "Try it Now"
You can edit the HTML code and view the result using online editor.
Click on the "Try it Now" button to see how it works.
Example
<!DOCTYPE html>
<html>
<head>
<title>HTML VSCode Example</title>
</head>
<body>
<p>Coding with Visual Studio Code</p>
<h1>Heading</h1>
<p>Heading details... Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been
the industry's standard dummy text ever since the 1500s</p>
<h2>Heading</h2>
<p>Heading details... When an unknown printer took a galley of type and scrambled it to make a type specimen book. It
has survived not only five centuries</p>
</body>
</html>
Click on the "Try it Now" button to see how it works.