tutorialstonight logo
A Platform To Learn To Code


Meta tag is used to specify metadata about the HTML document.

Metadata is additional information about the provided data.

Information provided in meta tag is not visible in the webpage.These information are embedded in the document and are used by search engines and browsers.

Meta tag is an empty tag and has no content value it only has attributes.

The <meta> tag contains two attributes: name and content.


In HTML meta data need not be closed but in XHTML it is necessary to close the meta tag like this ( < meta   / > ) .

Use of meta tag

HTML allows meta tags to be used only inside the head tag.

Meta tag is used to specify about character set,author,keyword,page description,last modification date and other metadata.


viewport setting by meta tag

HTML5 provides us a way to set viewport using a meta tag.

Include the following meta tag to let your web page to control dimension and scaling of the web page.