HTML Elements

Joshua Escobar

Back to CIS195 Home Page

Picture of HTML elements

<DOCTYPE html>
Defines the document type.
<html>
Root element of an HTML page.
<head>
Container for metadata.
<title>
Title of the page (shown in browser tab).
<meta>
Metadata (charset, viewport, SEO, etc.).
<link>
Connects external resources (like CSS).
<script>
Adds JavaScript code or links to a script file.
<body>
Main content of the page.
<h1-h6>
Hierarchy of headings with <h1> being the most important.
<p>
Paragraph.
<br>
Line break.
<hr>
Horizontal line (divider).
<span>
Inline text container.
<strong>
Bold/important text.
<em>
Italic/emphasized text.
<a>
Anchor (link).
<img>
Image.
<figure>
Container for images, diagrams, code blocks, etc.
<Figcaption>
Caption or description for a <figure> element.
<video>
Video embed.
<audio>
Audio embed.
<ul>
Unordered list (bullets).
<ol>
Ordered list (numbers).
<li>
List item.
<dl>
Description list.
<dt>
Description term.
<dd>
Description detail.
<table>
Table container.
<tr>
Table row.
<td>
Table data cell.