Pub Pixel Avatar Image

HTML5 Snippets - Tell Search Engines To Index Your Web Page

Published:

Rate Article (Sign in and be the first to rate this article.)

Article Details

Views: 1085

First Published:

Word Count: 401

Edition: 1

Now if you need the search engines to index your web page so that it can be displayed in their search results. Then all you need to do is add the <meta> element along with the name attribute and content attribute. You will then need to include the robots value for the name attribute in-order to tell the search engines spiders if they should or should not inspect the content of the web page. Next you will need to include the content attribute. The content attribute should have the value of index in-order to tell the search engines spiders that they should index your web page so that it may be displayed in their search results.

Now let me first show you the code by itself for the HTML snippet for telling the search engines to index your web page so that it can be displayed in their search results. And then I will show you how to code and where to place the HTML snippet for both HTML5 and XHTML5.

Here is the HTML code snippet below to tell the search engines to index your web page so that it may be displayed in their search results.


<meta name="robots" content="index" />

Here is the HTML code snippet to tell the search engines to index your web page so that it may be displayed in their search results for HTML5 in the example below.


<!DOCTYPE html>
<html>
<head>
 <meta charset="UTF-8">
 <title>Welcome To HTML5</title>
 <meta name="robots" content="index">
</head>
<body>
  
 <p>Search engine spiders should index your web page.</p>  

</body>
</html>

And here is the HTML code snippet to tell the search engines to index your web page so that it may be displayed in their search results for XHTML5 in the example below.


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">  
<head>
 <meta charset="UTF-8" />
 <title>Welcome To XHTML5</title>
 <meta name="robots" content="index" />
</head>
<body>

 <p>Search engine spiders should index your web page.</p>  

</body>
</html>

Article Tags

Tag Article (Sign in if you want to tag this article.)

Share This Article

Send To Facebook Link

Tweet This Link

Send To LinkedIn Link

Send To StumbleUpon Link

Digg This Link

Send To Google Plus One Share Link

Send To Reddit Link

Send To Tumblr Link

Send To Delicious Link

Send To FriendFeed Link

Send To Diigo Link

Email Link

AddThis Link

0 Comments

Leave Comment (Sign in and be the first to comment on this article.)

Important

This site cannot guarantee the accuracy of articles, comments, answers and other types of content or media submitted by members or anonymous users and guests, and we recommend that you use common sense when following any advice or information found on this site. Read our full Content Disclaimer Agreement for further information.