Tag Description
<!DOCTYPE html> Declares the document type as HTML5.
<html> Root element containing the entire page.
</html> Closes the html document.
<head> Contains metadata and links.
</head> Ends the head section.
<meta> Defines metadata such as charset or viewport.
<title> Sets the browser tab title.
</title> Closes the title tag.
<link> Links external CSS files.
<body> Contains visible page content.
</body> Ends the body section.
<a> Creates a hyperlink.
</a> Closes the hyperlink tag.
<header> Defines header area.
</header> Ends header section.
<div> Generic block container.
</div> Ends div.
<nav> Navigation menu container.
</nav> Ends nav.
<ul> Unordered list.
</ul> Ends unordered list.
<li> List item.
</li> Ends list item.
<button> Clickable button.
</button> Ends button.
<main> Main content area.
</main> Ends main.
<section> Groups thematic content.
</section> Ends section.
<h1> Main heading.
</h1> Ends h1.
<h2> Subheading.
</h2> Ends h2.
<h3> Smaller heading.
</h3> Ends h3.
<p> Paragraph of text.
</p> Ends paragraph.
<figure> Wrapper for image + caption.
</figure> Ends figure.
<img> Embeds an image.
<figcaption> Caption for figure.
</figcaption> Ends figcaption.
<ol> Ordered list.
</ol> Ends ordered list.
<article> Independent content block.
</article> Ends article.
<hr> Horizontal rule divider.
<form> Form container.
</form> Ends form.
<label> Label for input.
</label> Ends label.
<input> Single-line input field.
<textarea> Multi-line text input.
</textarea> Ends textarea.
<footer> Footer section.
</footer> Ends footer.
<script> Contains JavaScript.
</script> Ends script.