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">
<head>
	<meta charset="UTF-8">
	<title>(Title)</title>
	<meta name="description" content="(Description)">
	<meta name="author" content="(Author)">

	(links to Bootstrap, Google Fonts, external CSS files)
</head>
<body>
	(content)
	(links to external JS files)
</body>
</html>

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

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

Here’s a useful website for generating HTML boilerplates

http://htmlshell.com/

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.

2 Likes

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