Skip to content

02. Basics of SEO

Basic SEO practices involve optimizing HTML structure, content, and metadata to help search engines understand and rank your website. While SEO is a broad field, HTML provides the foundation for many SEO techniques. Understanding basic SEO helps create search-friendly websites.

<title>Descriptive Page Title - Site Name</title>
<meta name="description" content="Clear, compelling description of the page">
<h1>Main Title (one per page)</h1>
<h2>Section Headings</h2>
<h3>Subsection Headings</h3>
<article>
<header>
<h1>Article Title</h1>
</header>
<p>Content...</p>
</article>
<article>
<h1>HTML Tutorial</h1>
<p>Learn HTML with this comprehensive tutorial...</p>
</article>
<img src="image.jpg" alt="Descriptive alt text">
<a href="/related-article">Related Article</a>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Optimize images -->
<img src="image.jpg" alt="Description" loading="lazy">
<!-- Good: Unique, descriptive -->
<title>About Us - Company Name</title>
<!-- Avoid: Generic -->
<title>Page</title>
<!-- Good: Clear, descriptive -->
<h1>Complete Guide to HTML</h1>
<p>This guide covers all aspects of HTML...</p>