Back to Topics
HTML Tags
What are Tags?
HTML tags are the building blocks of web pages. They act as labels that tell the browser how to interpret and display content. Most tags come in pairs: an opening tag and a closing tag.
Types of Tags
- Paired Tags — Have both opening and closing tags (e.g., <p>...</p>)
- Empty Tags — Self-closing tags that don't need a closing pair (e.g., <br>, <img>)
Syntax
The standard structure for a paired HTML tag is as follows:
<tagname> Content goes here </tagname>
Common Tags
- <p> Paragraph element
- <a> Hyperlink / Anchor
- <img> Image element
- <ul> Unordered list
View My Practice Work