Jun 27, 2024
<!DOCTYPE html>
<html>
tagsHead Section
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SEO and HTML Guide</title>
<meta name="description" content="This guide takes you through the basics of how to structure your HTML so it helps with your SEO">
</head>
Body Section
<body>
<nav>
<!-- Navigation links -->
</nav>
<header>
<!-- Optional header content -->
</header>
<main>
<h1>SEO and HTML Guide for 2024</h1>
<h2>Subheader</h2>
<p>This is a paragraph.</p>
<ul>
<li>List item</li>
</ul>
<ol>
<li>Step 1</li>
</ol>
</main>
<footer>
<!-- Footer content -->
</footer>
</body>
<nav>
: Encloses navigation links<ul>
and <li>
: For listing navigation items<nav>
<ul>
<li><a href="about.html">About</a></li>
<li><a href="2024-board.html">2024 Board of Directors</a></li>
</ul>
</nav>
<main>
tagsh1
: Main heading (should only be one per page)h2
: Subheadings (multiple allowed)h3
, h4
, h5
, h6
: Sub-subheadings (should follow hierarchy)<p>
tags<ol>
) and unordered (<ul>
) lists<img>
tags for imagesalt
attribute for accessibility<img src="images/facebook.svg" alt="Facebook Icon">
<a>
tags to make images clickable<a href="https://facebook.com" aria-label="My dog spot's fan page on Facebook">
<img src="images/facebook.svg" alt="Facebook Icon">
</a>
<footer>
<!-- Footer content here -->
</footer>
<a href="2024-board.html" aria-label="Read more about the 2024 Board of Directors">Read more</a>