How to: Embedding Keywords Into the CODE of the Website
Your website content is crawled by search engines and keywords are extracted, so search engines can properly index your site. Search engines also read the other code on your site so you can embed relevant keywords in other parts of the code. You use the image tags, meta tags, headers and links to embed keywords in your code.
Instructions
-
-
1
Right-click the HTML page you want to optimize for a set of keywords. Click "Open With" and choose your HTML editor from the list of programs.
-
2
Add a meta keywords tag. The meta keywords tag is read by some search engines to help index your site. Add the following code between the "<head>" and "</head>" tags:
<meta name="keywords" content="your keywords separated by a comma">
Place your keywords in the "content" property and separate each keyword using a comma.
-
-
3
Add keywords to your "img" tags. HTML images include an "alt" property you use to embed keywords into the page. The following code is an example of an img tag with the alt keywords inserted:
<img src="myimage.gif" alt="My keywords" />
The "alt" text is shown if the image link is broken or does not load for your readers. Typically the alt tag is a sentence with a keyword phrase.
-
4
Add "header" tags. The most important header tags are the "H1" and "H2" tags. These tags contain secondary keywords for your site. For instance, if your main keywords are "blue widgets" the header tags contains "widgets for sale" or "local widgets." The following code shows you the syntax for the H1 and H2 tags which you place within the HTML body:
<h1>Widgets for Sale</h1>
<h2>Where to Find Widget Sales</h2> -
5
Include keywords in your anchor text. The "anchor" text is the keyword phrases used for your links. The following code shows you how to use keywords for links:
<a href="page.html">Widgets for Sale</a>
-
1