Bruno Ribeiro | Cal Poly | GRC 338: Web Development and Content Management
GRC 338

New HTML file using VS Code

  1. Launch VS Code.

  2. On VS Code, go to File >> New File.

  3. Copy and paste this code:

        <!doctype html>  
        <html lang="en">  
            <head>  
                <meta charset="UTF-8">  
                <meta name="viewport" content="width=device-width, initial-scale=1">  
                <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />  
                <meta http-equiv="Pragma" content="no-cache" />  
                <meta http-equiv="Expires" content="0" />  
                <title>Untitled Document</title>  
            </head>   
            <body>  
            </body>  
        </html>
    

Save your new file as .html in the folder for your project. If this is the first file of your project, it probably should be named index.html.