20th September, 2018
HTMl lets you specify metadata-information about a document rather than document content in a variety of ways. The META element can be used to include name/value pairs describing properties of the HTML document, such as author, Expiry Date, a list of key words, author etc. Metadata provided by using meta tag is a very important part of the web. It can assist search engines in finding the best match when a user performs a search. Search engines will often look at any metadata attached to a page especially keywords- and rank it higher than another page with less relevant metadata, or with no metadata at all.
You can add metadata to your web pages by placing <meta> tags between the <head> and </head>tags. The can include the following attributes
|Name||Name for the property, can be anything, Examples include, keywords, description, author, revised, generation etc.|
|Content||Specifies the property’s values|
|Scheme||Specifies a scheme to use to interpret the property’s value(as declared in the content attribute)|
|http-equiv||Used for http response message headers. For example http-equiv can be used to refresh the page or to set a cookie. Value include content-type,expires,refresh and set-cookie|
Note Core attributes for all the elements are discussed in next chapter.
Let’s see few important usage of Meta Tags.
We specify keywords which will be used by the search engine to search a web page. So using following tag you can specify important keywords related to your page. <head> <meta name=”keywords” content=”HTML, meta tags, metadata”/> </head>
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills .
Write For Us