HTML and SEO
What Is It?
SEO means helping search engines understand your page. Start with a useful title, clear headings, and helpful content.
What the Tags Mean
title: names the page.meta name="description": summarizes it.h1: the main heading.a: connects related pages.
Example 1
Save each example as index.html and open it in your browser. Each code block is a complete page.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Beginner HTML Notes</title>
<meta name="description" content="Short HTML lessons with simple examples.">
</head>
<body>
<h1>My example page</h1>
<p>Look at the browser tab to check the title or icon. Meta tags describe the page without adding visible text.</p>
</body>
</html>Browser preview
What you see: The title appears in the browser tab. The description is page information, not visible body text.
Example 2: Another Use
Use a heading that tells readers what the page is about.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML and SEO</title>
</head>
<body>
<h1>How to make an HTML list</h1>
<p>Use ul for bullets and ol for numbered steps.</p>
</body>
</html>Browser preview
Simple Tip
Write for people first. A title or description does not guarantee a search ranking.
Try It Yourself
Write one clear title and description for your own page.