HTML meta tag

<meta> tag represents meta data about a page. Browsers use the meta data to bring the page in search results.


<!DOCTYPE html>
 <meta name="keywords"  content="break bone fever,dengue fever,dengue virus,mosquitoes">
 <meta name="description"  content="dengue fever is caused by the dengue virus that the mosquitoes spread.what are the causes of dengue fevere. what is the treatment of dengue fever.">
  <p>All these meta tags given in the head tag are used by the search engines.</p>	
Try </>

Specific Uses

meta information tells the browser about what kind of data is on the page.

For example, the above-given meta describes the dengue fever. Now, if a user searches for dengue fever information, then the page containing the above meta data will be in the search results.

Tag omission

meta element is self-closing tag i.e. there is no end tag.

Global Attributes

All the global attributes are applicable on the meta element.

Specific Attributes

<meta> tag attributes

name defines metadata name.
<meta name="name of the property" content="value of the property" />
http-equiv defines pragma directive. There are more than one values for this attribute.
<meta http-equiv="content-language" content="fr" />
content defines metadata value for the corresponding name attribute.
<meta name="name of the property" content="value of the property" />
charset The character encoding used by the document.
<a charset="UTF-8" />

Was this article helpful?




Get the newsletter