by Chris Standa, Moringa School Student
HTML meta tags are used to provide search engines with additional information about HTML documents. These include name of the author, a short description about the HTML document, keywords. In other words, meta tags provide information about the data found on your HTML documents. The metadata is very important in search engine optimization since they are used by search engines such as Google, Yahoo, Bing, DuckDuckGo, Baidu , etc to categories websites. This is done by through specified elements such as website title, keywords and page description. Specified elements are set within the head tag section of the HTML document just before the closing title tags.
Here is a simple example:
There are a number of tags that can be used but the most important ones are the title, keywords and description tags.
1. Title attribute
The title tag is normally used to display information at the top of the browser and as the heading in search results .
2. Description attribute
The description attribute is used by search engines to display search results by providing a brief plain language description of what your page is about. e.g.
<meta name=”description” content=”Get a taxi, private car or rideshare from your mobile phone. Uber connects you with a driver in minutes. Use our app in cities around the world.”>
Description attribute is displayed as the above search result.
3. Keywords attribute
This attribute is used by search engines to index HTML documents. It normally contains words that are relevant to the content of the HTML document. Google does not use the keywords meta tag in search ranking after realizing that some SEO experts abused this attribute by using words that were not related to their pages in order to generate traffic from other popular sites, however, China’s search engine Baidu uses keywords in its search algorithm.There are many other tags that can be used, however, here are a few more examples:
<meta name=”copyright” content=”text”>
<meta name=”language” content=”English”>
<meta name=”web_author” content=”text”>
<meta name=”googlebot” content=”noodp”>
<meta name=”robots” content=”noindex, follow”>
(Check out Chris’ personal website here.)