Basic HTML5 Template (Visual Studio Code Shortcut)

Eugene Yeboah

Written by:

Eugene Yeboah • January 29, 2021

Basic HTML5 Template (Visual Studio Code Shortcut)

If you're using Visual Studio Code, here's a tip to quickly generate a basic HTML Template. Note: Your document type will have to be set to HTML. In an .html document, type html:5 and press tab.

Below is the raw output, in case you are not using Visual Studio Code, or are not able to get the above tip to work.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
</body>
</html>