A Basic HTML Page Template?

Hello all. I’m trying to create a basic HTML page template that I can copy and paste. There seems to be several ways to do this, so I’m trying to make all my projects uniform. Right now it looks like this:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<meta charset="UTF-8">
	<meta name="description" content="(Description)">
	<meta name="author" content="(Author)">

	(links to Bootstrap, Google Fonts, external CSS files)
	(links to external JS files)

Am I missing something, or is something that needs to be changed?

<meta name="viewport" content="width=device-width, initial-scale=1">

Here’s a useful website for generating HTML boilerplates


1 Like

Try HTML Boilerplate as well.

1 Like

you have couple of good answers above, important if you think about responsive view is the viewport, other than that it looks good!

1 Like

VS Code and other IDE/text editors have some default snippets, or you can find plugins, that output a nice html template when you type ! then tab, or html then tab.

Here’s another resource I have used for what can go in the head element.


Okay, cool! Thank you for all the answers & references everyone!