Web Dev

HTML Boilerplate

Below is HTML boilerplate that you can copy and paste into your new HTML documents. You can read more about the elements of the boilerplate here.

Pro Tip: Visual Studio Code will automatically generate this boilerplate for you after you save your new file as an HTML document. Simple start typing the letters “html” and Visual Studio Code’s autocomplete feature will suggest several options. Select “html:5” and the boilerplate will appear! Handy, right?

<!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>