meta http-equiv Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:meta

Description

The http-equiv attribute provides an HTTP header for the information/value of the content attribute.

The http-equiv attribute can be used to simulate an HTTP response header.

Attribute Values

Value Description Example
content-type Specifies the character encoding for the document.<meta http-equiv="content-type" content="text/html; charset=UTF-8">
default-style Specified the preferred style sheet to use. <meta http-equiv="default-style" content="the document's preferred stylesheet">
refresh Defines a time interval for the document to refresh itself. <meta http-equiv="refresh" content="300">

The following code shows how to Refresh document every 30 seconds:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="refresh" content="30">
</head><!--from w w w.j  a  v  a  2 s . co  m-->
<body>

<h1>My Website</h1>
<p>Some text...</p>

</body>
</html>

Related Tutorials