HTML meta Tag defines the metadata of a website or a web page. The term metadata means data or information about other data. In this case meta tag gives important information about the HTML document.
Table of Contents
Syntax of HTML meta Tag
The Syntax of HTML meta Tag is shown below, It has only starting tag.
<meta>
Usage of HTML meta Tag
HTML meta Tag is used to give important information about a website to the search engines. HTML meta tag helps the search engine and it also improves the ranking of websites.
HTML meta Tag provides information like keywords of page, description of page, author name, viewport information, character set information and more.
HTML meta Tag is always used inside the head tag of a web page.
HTML meta Tag is not rendered and displayed by the browsers. It is only there for providing the information which is important for robots and search engines.
Example of HTML meta Tag
Simple example of HTML meta Tag is given below.
<meta name="description" content="Article on HTML meta Tag">
In above example we have used description type meta tag which describes the web page.
Browser Support for HTML meta Tag
HTML meta Tag is supported by all major browsers which include Chrome, Opera, Firefox, Edge, Internet Explorer and Safari.
Global Attributes Support in HTML meta Tag
The HTML meta Tag supports all Global Attributes.
Event Attributes Support in HTML meta Tag
The HTML meta Tag is not meant for Event Attributes.