HTML Elements

Kanoa Howell

Return to CIS195 Portfolio Page
<!DOCTYPE html>
Declaration that defines the document type as HTML5
<html>
Root of the document
<head>
Metadata container
<title>
Page title in browser tab
<meta>
Metadata (charset, viewport, etc.)
<link>
Link to external resources (like CSS)
<script>
Embed or link JavaScript
<body>
Main page content
<h1>
Main heading
<h2>
Sub-heading
<h3>
Smaller sub-heading
<p>
Paragraph
<br>
Line break
<hr>
Thematic divider line
<strong>
Strong importance (bold)
<em>
Emphasis (italic)
<b>
Bold (without importance)
<i>
Italic (without emphasis)
<u>
Underlined text
<mark>
H
Highlighted text
<small>
Smaller text size
<span>
Line container for styling
<div>
Block-level container
<header>
Introductory content/heading area
<nav>
Navigation links section
<main>
Main content area
<section>
Thematic grouping of content
<article>
Independent content (like a blog post)
<aside>
Side content (sidebar, notes)
<footer>
Footer content