HTML, structure and entities

HTML Codes Reference

Learn common HTML tags, document structure, semantic elements, forms, media tags and safe HTML entities.

Common HTML tags

Learn common HTML tags, document structure, semantic elements, forms, media tags and safe HTML entities.

HTML codePurpose
<!DOCTYPE html>Document declaration
<html>Root element
<head>Metadata container
<title>Browser and result title
<meta>Page metadata
<link>External resource or canonical URL
<body>Visible content
<header>Introductory content
<nav>Navigation links
<main>Primary page content
<section>Thematic section
<article>Self-contained article
<aside>Related content
<footer>Footer content
<h1> to <h6>Heading levels
<p>Paragraph
<a>Link
<img>Image
<ul> / <ol>Lists
<table>Data table
<form>Input form
<button>Button
<code>Code text
<pre>Preformatted text

HTML entities

EntityRenders asDescription
&lt;<Less-than sign
&gt;>Greater-than sign
&amp;&Ampersand
&quot;"Quotation mark
&apos;'Apostrophe
&nbsp;non-breaking spaceKeeps words together
&copy;©Copyright
&reg;®Registered trademark
&trade;â„¢Trademark
&euro;€Euro
&pound;£Pound
&yen;Â¥Yen
&mdash;—Em dash
&ndash;–En dash