Understanding each HTML tag is a crucial step to implementing your own HTML code.
Use this guide as a reference for standard HTML tags and how to use them.
HTML tags are simple instructions that tell a web browser how to format text. You can use tags to format italics, line breaks, objects, bullet points, and more.
These tags live in the HTML (or the Hypertext Markup Language) of every webpage. Put, HTML is the language of web pages.
How Do Web Pages Read HTML Tags?
Servers read HTML code to understand and render content. It will read the HTML from top to bottom, much like how you’re reading this guide.
You can use as many or as few tags as you like to format content. However, there are a few essential HTML tags and rules you’ll need to follow.
An HTML tag must contain three parts:
- An opening tag — this will start with a < > symbol
- Content — the short instructions on how to display the on-page element
- A closing tag — this will end with a </ > symbol
However, some HTML tags can be unclosed. That means that the HTML tag does not need to be closed with a </ >. You’ll typically use unclosed tags for metadata or line breaks.
What’s the Difference Between Attributes and HTML Tags?
Although this guide is all about HTML tags, it’s important to know the difference between HTML tags, elements, and attributes.