Keywords go in the places search engines read first
Search engines scan your website looking for words that match what people type into Google. The words you choose to target — your keywords — need to appear in specific places on your pages, or the search engine may never connect your site to the searches you want. You do not need to stuff keywords everywhere; you need to put them in the places that actually matter.
The highest-impact locations are your page title (the text that appears in the browser tab and search results), your main heading, the first paragraph of your content, and the image descriptions. These are the spots search engines weight most heavily. After that, keywords scattered naturally through your body text and in subheadings help reinforce the topic, but only if they fit the sentence.
The mistake most people make is either ignoring keywords altogether or forcing them in so awkwardly that the page reads like spam. Neither approach works. A search engine can tell when a keyword is forced, and readers will leave if the writing feels unnatural. The goal is to use keywords where they belong and write around them naturally.
Key Takeaways
- Your page title (the text in the browser tab) is the single most important place for your main keyword, and it should appear near the beginning of that title.
- The main heading on the page and the first 100 words of your content should include your target keyword at least once, naturally.
- Image file names and alt text (the description that appears if an image fails to load) should include keywords when they describe what the image shows.
- Meta descriptions (the 155-character summary under your page title in search results) should include your keyword and tell readers what they will find on the page.
- Keyword density — how often a keyword appears relative to total words — matters less than relevance; forcing keywords into every sentence hurts more than it helps.
How to add keywords to your page title and meta description
Your page title is the text that appears in the browser tab at the top of the screen and as the blue clickable link in search results. This is where a keyword has the most weight. Put your main keyword near the beginning of the title, within the first 60 characters if possible, because search engines and readers both see it first.
A good page title is 50 to 60 characters long and reads like a real title, not a keyword list. If you are writing about "how to fix a leaky kitchen faucet," your title might be "How to Fix a Leaky Kitchen Faucet: Step-by-Step Guide" rather than "Leaky Kitchen Faucet Repair Leaky Faucet Fix." The first one includes the keyword naturally and tells readers what they will learn. The second one looks like spam.
Below the title in search results, you will see a short summary called the meta description. This is a 155-character text that you write to summarize the page. Include your keyword once in this description, and make it a sentence that would make someone want to click. "Learn how to fix a leaky kitchen faucet with tools you probably have at home" is better than "This page is about leaky kitchen faucets and how to fix them."
Where keywords belong in your page content
The first paragraph of your page should include your main keyword at least once. Search engines read the opening sentences to understand what the page is about, so if your keyword appears there, it signals relevance. This does not mean forcing it awkwardly — it means writing your opening paragraph about the topic and letting the keyword appear naturally as part of that explanation.
Your main heading (the largest text on the page, usually at the top) should also include the keyword. If your page title is "How to Fix a Leaky Kitchen Faucet: Step-by-Step Guide," your main heading might be "Fixing a Leaky Kitchen Faucet" or "How to Fix Your Leaky Kitchen Faucet." The heading does not have to be identical to the title, but it should reinforce the same topic.
Throughout the body of your page, use the keyword and related words naturally as you write. If you are writing 1,500 words about kitchen faucet repair, the keyword might appear 8 to 12 times total — not forced into every sentence, but woven in where it makes sense. Use variations too: "leaky faucet," "faucet leak," "kitchen faucet repair," and "how to fix a faucet" all signal the same topic to a search engine without repetition feeling forced.
Adding keywords to image file names and descriptions
Every image on your website has a file name (like "kitchen-faucet-repair.jpg") and alt text (a written description that appears if the image fails to load). Both of these are places where keywords matter. Search engines cannot see images the way humans do, so they read the file name and alt text to understand what the image shows.
When you save an image to use on your website, name it something descriptive that includes a keyword if it fits naturally. Instead of "IMG_2847.jpg," use "leaky-kitchen-faucet-before-repair.jpg." Use hyphens between words, not underscores or spaces, because search engines read hyphens as word separators.
The alt text should be a short sentence describing what the image shows. "A leaky kitchen faucet dripping into a sink" is better than "faucet" or "image." Write alt text for accessibility first — it helps people using screen readers understand your page — and keywords will follow naturally if you describe the image accurately. Avoid keyword stuffing in alt text; it makes the description unreadable for people who need it.
Using keywords in subheadings and internal links
Subheadings (the smaller headings that break up your content into sections) are another place where keywords carry weight. If your page has sections like "How to Turn Off the Water Supply," "Removing the Faucet Handle," and "Installing the New Faucet," these subheadings reinforce your main topic without repeating the exact keyword in every one. A mix of your main keyword and related terms in subheadings helps both readers and search engines understand the page structure.
Internal links — links from one page on your website to another page on your website — should use keyword-rich anchor text. Instead of linking with "click here," use "learn how to replace a kitchen faucet" or "see our guide to faucet repair." The words you use in the link tell search engines what the linked page is about, so choose them based on the topic of the page you are linking to, not generic phrases.
How keyword placement changes for different page types
A product page, a blog post, and a service page all need keywords, but the placement strategy shifts slightly depending on what the page does. On a product page, the product name is your primary keyword, and it should appear in the title, the main heading, the product description, and any specifications. On a service page for a plumbing company, the service name and location matter most — "Emergency Plumbing Services in Denver" in the title, for example.
A blog post has more flexibility because it can target longer, more conversational keywords. A post titled "Why Your Kitchen Faucet Leaks and How to Stop It" targets a different search than "kitchen faucet repair," and both are valid depending on what people are searching for. The principle stays the same: put the keyword in the title, the opening paragraph, and the main heading, then use it naturally throughout.
For local businesses, location keywords matter as much as service keywords. If you run a dental practice in Portland, Oregon, your pages should include "Portland dentist," "dental care in Portland," or "Portland dental office" in titles and headings. Search engines use location keywords to match your business to local searches, so do not skip them even if it feels repetitive.
Common mistakes that hurt your keyword placement
The most damaging mistake is keyword stuffing — using a keyword so many times that the page reads unnaturally. A page that says "kitchen faucet repair, kitchen faucet repair, how to repair a kitchen faucet, kitchen faucet repair tips" in the opening paragraph will rank poorly because search engines penalize this practice. Readers will also leave immediately because the writing is unreadable.
Another common error is targeting keywords that do not match what you actually write about. If your page is about fixing a leaky faucet but your keyword is "buy a new kitchen faucet," the mismatch will confuse search engines and disappoint readers who click expecting repair instructions. Choose keywords that describe what your page actually covers.
Ignoring long-tail keywords (longer, more specific phrases like "how to fix a leaky kitchen faucet without replacing it") is also a missed opportunity. These keywords have less search volume than short keywords like "faucet repair," but they often have higher intent — the person searching knows exactly what they want. A page targeting a long-tail keyword often ranks faster and attracts more may have access to readers.
Frequently Asked Questions
How many times should a keyword appear on a page?
There is no magic number. A 500-word page might include the keyword 3 to 5 times; a 2,000-word page might include it 10 to 15 times. The goal is natural frequency — if you are writing about the topic, the keyword will appear as part of normal writing. If you have to force it in, you have enough already.
Should I use the exact keyword or variations?
Use both. Your main keyword should appear in the title and opening paragraph in its exact form. Throughout the page, variations like synonyms and related phrases are fine and actually preferable because they make the writing flow better. "Faucet leak," "leaky faucet," and "how to fix a faucet" all signal the same topic.
Does keyword placement matter more than content quality?
No. A well-written page with keywords in the right places will rank better than a poorly written page with perfect keyword placement. Search engines prioritize content that answers the reader's question. Keywords help search engines understand what your page is about, but the page has to actually deliver value.
What if my keyword is too long or awkward to fit naturally?
Choose a different keyword or break it into smaller pieces. If "best way to fix a leaky kitchen faucet without calling a plumber" is your target keyword but it does not fit anywhere naturally, use "how to fix a leaky kitchen faucet" as your main keyword and let the longer phrase appear in body text if it comes up organically.
Can I add keywords after the page is published?
Yes. You can edit your page title, meta description, headings, and body content at any time. Search engines will re-read the page and update their understanding of it. If you realize a keyword is missing or poorly placed, update it — just make sure the updated version still reads naturally and answers the reader's question.