HTML5 Starting boilerplate template

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.
Search for a command to run...

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.
Thanks Braydon, glad you liked it
Most of you know me for my consistency, a golden arrow in my blog series. I've written 1000 articles in 1008 days! Almost an article a day, and my honeymoon was the only holiday I ever took. I'm super proud of this achievement; it has been a fantasti...

It's not the first time I'll be talking about community. I think it's an essential aspect of any successful tool. This shows in my previous explorations of Astro, Medusa, and now Vendure as well. All these products thrive in a super open, welcoming, ...

The cool part about Vendure is how easy it is to set up and how abstract each layer is. Basically, we get the following elements: External database Server Worker Admin UI Frontend While this is amazing, it also brings a bit of complexity when it co...

The previous article looked at customizing Vendure on a data and process level. In this article, we'll look at customizing emails, as they are often a big part of a webshop system. We'll be looking at two different layers of customization for customi...

Even though Vendure is a pretty significant project out of the box, in some cases, we might want to go in and modify some elements to work to our specific use case. In this article, I'll take a high-level look at some elements we can customize within...

Today I want to go back to the absolute basics when we start our websites, the boilerplate template.
What a boilerplate stands for is a quick copy-paste HTML document that is the bare minimum to get started.
In this article, I'll share my version of the HTML5 boilerplate with you guys and explain the parts that are to it.
Without further ado, this is my boilerplate
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Daily Dev Tips Boilerplate</title>
<meta name="description" content="Basic HTML boilerplate" />
<meta name="author" content="Daily Dev Tips" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<!-- Your content goes here -->
<script src="js/main.js"></script>
</body>
</html>
You can also get the raw file directly from this GIST.
Download the HTML5 boilerplate
It's a very basic boilerplate, with only the bare minimum that would come back in 99% of the projects.
Generic elements
<html> tag is the most important part and our main wrapper for everything. We define a lang attribute, in my version it's en (English).Head section
We then come to the head section, which can be vastly extended, for me these are the basics that always recur.
UTF-8 is the character encoding we use, so I like to have it set to that.Body section
Then the main part where most of our content will go, the body of our HTML document.
That's it.
A very basic template, but something you'll need all the time. You can even use tools to have this as a shortcut.
Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on Facebook or Twitter