HTML tags: A guide to the basics

HTML tags
(Image credit: Future)

HTML is the foundation of every website on the web. It defines where the visuals should be placed, what they look like and what behaviour they should have. It is the first thing a browser receives, making it a crucial piece to get right even before the CSS and JavaScript.

It is the main driver of the Document Object Model that allows the browser to read the structure of the page and render its contents (see more about page layouts here). Elements are created by parsing the tags we write in the markup. Because of this, it’s important to make sure the HTML is correct. The language itself has been improved upon over the years to make sure the syntax used can describe the content within it accurately, and allow consumers to make sense of it.

Thank you for reading 5 articles this month* Join now for unlimited access

Enjoy your first month for just £1 / $1 / €1

*Read 5 free articles per month without a subscription

Join now for unlimited access

Try first month for just £1 / $1 / €1

Matt Crouch

Matt Crouch is a front end developer who uses his knowledge of React, GraphQL and Styled Components to build online platforms for award-winning startups across the UK. He has written a range of articles and tutorials for net and Web Designer magazines covering the latest and greatest web development tools and technologies. 

Latest in HTML
Write HTML faster
How to write HTML code faster
HTML tags
8 HTML tags you need to be using (and 5 to avoid)
HTML tags
HTML tags: A guide to the basics
18 great HTML APIs – and how to use them
Convert Flash games to HTML5
Convert Flash games to HTML5
Build a simple HTML page
Latest in Features
AI generated images of a male creative director and a female parent
AI's gender bias is even worse than reality
Lady Phyll
"She embodies strength, resilience, and pride": Ron Timehin on photographing LGBTQ+ icon Lady Phyll
Atomfall hands-on; various scenes from a video game set in a 1950s England after the apocalypse
"We wanted it to feel big" – playing Atomfall from an art director’s perspective
Best video game architecture; a woman stands in front of a city scene, in the distance is a mix of gothic and modernist buildings
The best video games for architecture and design fans
Among The Trolls by Avantgarden Games;
How Unreal Engine 5 is harnessed to blend photoreal environments with fantasy folklore in Among The Trolls
Cartoons of the 1960s; A vibrant illustration of the Yellow Submarine, a psychedelically patterned background surrounds the iconic vessel.
Cartoons of the 1960s – the best animated movies feature the work of Chuck Jones, who ensured characters were "not realistic, but believable"