How to make Google display customized content in its search results page for your website?

Let’s say you have created a website.

You are starting to get decent number of hits and google starts indexing your website in its search results.

You search for your website in Google Search and “Aha!” your website is shown in the search results.

But the content in the search result is random and you want to change that.

How do you that?

By using the HTML tag “meta”

And using the HTML attribute “name” and “content”.

Add the below meta tag in your index.html/first page shown to user on loading the website:

<meta name="description" content="Welcome to my website!">

That’s it!

Google will use this “meta” information in its search results the next time.

And it will display the content “Welcome to my website!”


Posted

in

,

by

Comments

Leave a Reply

Discover more from The Full Stack Developer

Subscribe now to keep reading and get access to the full archive.

Continue reading