HTML Elements

Natasha Butler

Return to CIS 195 Home | Portfolio
<!DOCTYPE html>
Declares the document type and HTML version (HTML5)
<html>
Root element of the HTML document
<head>
Contains metadata, links, and the page title
<title>>
Sets the title shown in the browser tab
<meta>
Defines metadata (like character encoding or viewport settings)
<link>
Links external resources (like CSS files)
<style>
Embeds internal CSS styles
<script>
Embeds or links to JavaScript code
<body>
Contains all the visible content of the page
<h1> to <h6>
Headings (from largest to smallest)
<p>
Paragraph
<br>
Line break
<hr>
Horizontal rule (thematic break)
<strong>
Important text (bold)
<em>
Emphasized text (italic)
<span>
Inline text container for styling or grouping
<pre>
Preformatted text (preserves spaces and line breaks)
<ul>
Unordered (bulleted) list
<ol>
Ordered (numbered) list
<li>
List item
<pre>
Preformatted text (preserves spaces and line breaks)
<pre>
Preformatted text (preserves spaces and line breaks)
<a>
Hyperlink to another page or resource
<img>
Displays an image
<video>
Embeds a video
<audio>
Embeds audio
<source>
Specifies multiple media sources for <video> or <audio>
<div>
Block-level container for grouping content
<header>
Introductory content or navigation for a page or section
<footer>
Footer information for a page or section
<nav>
Defines navigation links
<section>
Groups related content within a page