HTML <meta> tag

HTML <meta> tag : Definition


• The <meta> tag is used to specifies the metadata about the HTML document.

• It specifies character set, page description, viewport, keywords, copyright, language, author of the documents, etc.

• The metadata will not be displayed on web page but it will be used by web browsers(displaying content or reloading page), searched by the search engines (keywords), and all other web services that needs metadata about your web page content.


Html <meta> tag example

It is used to specifies the keywords for search engines

<meta name="keywords" content="HTML, CSS, JavaScript, Php, Java, Python, Mysql">

It is used to define a description of your web page

<meta name="description" content="Free tutorials for CSE Students">

It is used to define the author of a page

<meta name="author" content="Prayag Verma">

It will refresh your web page document in every 15 seconds

<meta http-equiv="refresh" content="15">

It Sets the viewport to make your website look good on all devices

<meta name="viewport" content="width=device-width, initial-scale=1.0">