01 logo

HTML Boilerplates - Basic

A basic overview of HTML boilerplates

By Shelbi ThomasPublished 10 months ago 3 min read
HTML Boilerplates - Basic
Photo by Florian Olivo on Unsplash

What is it?

A HTML boilerplate is basically the template to start your HTML document that has all the basics. They can range from the really basic that just has all the minimal elements in order to make a document work, to more complex and customized for specific project types.

Why do I need them?

Boilerplates are useful to get a jumpstart on your project and creating a stock of customized ones for specific projects can help save you so much time.

Let’s look at a basic one:

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>Webpage Title</title>

</head>

<body>

<h1>Hello World!</h1>

</body>

</html>

The first part is your DOCTYPE declaration that every HTML page requires to start. This basically just tells the browser what version of HTML that you are using so it knows how to read it. In the above example, this tells the browser that we are using HTML5. <!DOCTYPE html>

The next part is the html element. This is the root of the document that everything else in the document is nested in. In the example above, we used the lang attribute to define the language that will be used on the page. This is mainly for accessibility purposes.

Next is the head element. This is to contain all meta-related information for the webpage and not for anything to display on the physical page itself.

Nested in the head element is the meta element that assists in the webpage rendering correctly and helps with SEO as well. In the above example, we are just defining the character set, but there are many other meta elements that can be added for different reasons.

Also nested in the head element is the title element. This is not a title that is displayed on the webpage itself, but usually on the browser’s tab, which is important for discoverability.

The next element is the body element. This is not nested in the head element but is still nested in the html element. This is the element that the majority of your content will be in including writing, videos, pictures, links, and other types of the content that you want your visitors to see.

Nested in the body element is just a simple h1 element to place the title of your webpage. This is what you want to appear at the top of your page and be the first thing that your visitors see on the page.

This is the basic boilerplate that all webpages should start off as. There are tons of extras that can be added to cater to specific needs, but I cannot think of one that would not include at least these basic things. This can help you get a jumpstart on your page building, saving you time and a headache.

While I am still just a student, I am loving building my own boilerplates when I am creatively stuck on a project for future use because it helps keep me motivated when starting a new project. Being able to skip past the basics helps my ADHD brain stay on task because I can immediately jump into the fun stuff and get the dopamine without having to do the mundane parts of building the foundation of a page which is where my thought and focus train derails and being able to focus on making the actual display and content of the page.

What are some of your questions that you may have on coding? I am by no means a professional, but writing these mini-tutorials helps me apply my knowledge to help cement the information and keep learning.

futuregadgetshackershow totech newsapps

About the Creator

Shelbi Thomas

Caffeinated and Hyper-fixated

Reader insights

Be the first to share your insights about this piece.

How does it work?

Add your insights

Comments (1)

Sign in to comment
  • Alex H Mittelman 10 months ago

    Hyper txt mark up language is fascinating! Boiler plates is cool!

Find us on social media

Miscellaneous links

  • Explore
  • Contact
  • Privacy Policy
  • Terms of Use
  • Support

© 2026 Creatd, Inc. All Rights Reserved.