Press "Enter" to skip to content

htmlmeta

HTML Meta Tag

HTML META Tag includes the document information used by the server (search engines) for identifying, Indexing, cataloguing documents.
The META tag is placed inside the Head Elements.
The META tag has the following attributes.
HTTP-EQUIV :The HTTP servers can read the content of the document head to generate a response header for any elements defining values for this attribute. 

Document after 5 seconds the code is as below:

HTML Meta refresh

The HTML meta refresh tag is used to refresh the current web page after a specified time interval. The tag is placed within the head section of the HTML document and it specifies the time interval in seconds.

Here is an example of how to use the HTML meta refresh tag:

<!DOCTYPE html>
<html>
<head>
<title>Meta Tags Example</title>
<meta name=”keywords” content=”HTML, Meta Tags, Metadata” />
<meta name=”description” content=”Learning about Meta Tags.” />
<meta http-equiv=”refresh” content=”10″ />
</head>
<body>
<p>w3htmlschools.. Tutorial Web site </p>
</body>
</html>

<!DOCTYPE html>
<html>
<head>
<!--meta http-equiv="refresh" content="5; URL=https://www.example.com"-->
</head>
<body>
  <h1>This page will refresh in 5 seconds!</h1>
</body>
</html>

HTML Meta description / Example for HTML Meta Tag

<head>
<Meta name=”description” content=”W3htmlschool.com provides html ,mysql and PHP  tutorials” >
<body>
<b> Welcome to w3htmlschool.com ! .. will help beginner and expert to learn HTML .Make your own web page </b>
</body>
</head>

HTML head Tag/Element Attribute and Description Details

AttributeDescription
NameName = to define as keywords, description, author, revised, generator etc.
ContentCan be define the property’s value
schemea scheme to interpret the property’s value (as declared in the content attribute)
http-equivFor http response message headers meta http-equiv is used.For Example http-equiv use for refresh the page

NAME this gives the meta information name . Examples include, keywords, description, author, revised, generator etc.
CONTENT :The meta information contents to be associated with the given name and HTTP response header