Arrow

HTML Meta tags

AuthorHariom Prajapati

Pubish Date23 Jul 2022

categoryHTML 5

 

  • In HTML document meta tags used to define metadata.
  • Metadata store information about data
  • Meta tag always written inside head tag
  • Meta data not display on the web page.
  • Meta data used by browser.

 

Attributes of meta tags

charset
character_set Specifies the character encoding for the HTML document
content text Specifies the value associated with the http-equiv or name attribute
http-equiv
content-security-policy
content-type
default-style
refresh
Provides an HTTP header for the information/value of the content attribute
name
application-name
author
description
generator
keywords
viewport
Specifies a name for the metadata

For Examples

It define the keywords of the content for search engines .

<meta name="keywords" content="HTML, CSS, JavaScript , PHP , LARAVEL">

It define a description of  your content .

<meta name="description" content="teknowize is a free learning platform">

It define the author of your page content .

<meta name="author" content="sumit dey">

It refresh your page in every specified seconds .

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

It is use to make your website look good on all type of devices .

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