Introduction to HTML in VS Code
Objectives
1 VS Code Editor Install and implement VS Code editor
2 HTML & VS Code
Editor
Develop web pages in HTML by using VS Code editor
VS Code Editor
Installing VS Code
▪ Visual Studio Code is built in an open
source code editor for HTML, CSS & JS.
▪ Step 1- On the address bar type
[Link]
▪ Step 2 - For Windows, click the icon as
seen in the image.
▪ Step 3 - For Mac OS, click the icon as
seen in the image.
Installing VS Code on Mac
▪ In Mac OS, save it as a zip file.
▪ Double-click the downloaded zip file while expanding it.
▪ The output is seen in the image.
Installing VS Code on Mac
▪ Drag the “Visual Studio [Link]” to
“Applications” to make it available on
Launchpad.
▪ Double-click the “Visual Studio Code” so that it
opens.
▪ Add VS Code to the Dock by right-clicking the
icon, then add VS Code to the Dock in the menu
as shown in the image.
▪ Select Options => Keep in Dock.
Installing VS Code on Windows
▪ Download the Visual Studio Code installer for Windows.
▪ Once it is downloaded, run the installer. (VSCodeUserSetup-{version}.exe). This will only take a minute.
▪ By default, VS Code is installed under C:\users\{username}\AppData\Local\Programs\Microsoft VS Code.
Installing VS Code on Windows
▪ After completing the Setup Wizard, open VS Code editor.
HTML & VS Code
Editor
Developing First HTML Program in VS Code
▪ Open a new file in VS Code editor.
▪ Save your file by clicking ”Save As” in a defined destination.
▪ Do not forget to put the .html extension in the file name.
Developing First HTML Program in VS Code
▪ Save your first HTML file as shown - document_name.html.
Developing First HTML Program in VS Code
▪ Pressing Shift+! On your keyboard will give you the -Emmet Abbreviation basic structure of your HTML document
as shown.
Developing First HTML Program in VS Code
▪ Type the following the html code.
Developing First HTML Program in VS Code
▪ Type the following the html code.
Developing First HTML Program in VS Code
▪ Web page output will be as shown here.