Sub topic 1
What the Title and Headings Do
Prerequisites
You should understand basic HTML structure, including head, body, title, and heading tags. You should also know what a search engine results page looks like and what a keyword or search query is.
What the Title and Headings Do
The HTML title element names a page in the browser tab. Search engines often use it as the clickable title in search results. It helps both users and search engines identify the page's main subject.
An h1 heading is the main visible heading on the page. It should describe the page's central topic. h2 and h3 headings divide that topic into sections and subsections. Headings make a page easier to scan and help assistive technology understand its structure.
The title and the h1 can use similar wording, but they do different jobs:
| Element | Main job | Usually visible on the page |
|---|---|---|
| `title` | Identify the page in search results and browser tabs | No |
| `h1` | Introduce the page's main topic | Yes |
| `h2` and `h3` | Organise sections and subsections | Yes |
Understanding Search Intent
Search intent is the reason behind a search query. A person searching “how to repot a snake plant” wants instructions. A person searching “snake plant pots” may want to compare or buy products.
Your title and headings should promise the kind of content the searcher expects. A page with instructional intent should use wording such as “How to” or “Step-by-Step Guide.” A product page should focus on the product, not present itself as a tutorial.
Choosing a Target Keyword for a Page
A target keyword is the main search phrase a page aims to answer. Choose one that matches the page's purpose and the words your audience uses. For an instructional page, repot a snake plant is more suitable than the broad phrase snake plant.
Use the keyword as a guide, not a phrase to repeat everywhere. Related terms such as “pot size,” “soil,” and “root damage” can clarify the topic.
Writing a Title Tag Around the Keyword
Put the target keyword near the start when it fits naturally. State the page type or benefit, and remove unnecessary repetition.
<head>
<title>How to Repot a Snake Plant: Step-by-Step Guide</title>
<meta name="description" content="Learn when and how to repot a snake plant, which pot and soil to use, and how to avoid root damage.">
</head>Exercise
What is wrong with the title “Snake Plant | Snake Plant | Repot Snake Plant”?
Show answer
It repeats the keyword unnaturally and does not tell the searcher what the page offers. A clearer title is “How to Repot a Snake Plant: Step-by-Step Guide.”