New! My 44-page ebook "CSS in 44 minutes" is out! 😃

Get it now →

# meta

Defines metadata attached to a web page.

Example: Copy

<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#ffffff">

Example: Copy

<!-- Refresh the page every 5 seconds -->
<meta http-equiv="refresh" content="5">

Example: Copy

<!-- Redirect instantly to https://cssreference.io -->
<meta http-equiv="refresh" content="0; url=https://cssreference.io">

charset

Defines the character encoding for the whole web page.

http-equiv

Defines meta rules for the web page.

"refresh"

Allows to refresh the web page every N seconds, or even redirect to another URL.

"X-UA-Compatible"

Defines which Internet Explorer verison the web page should be rendered as.

name

Defines additional information attached to the web page.

"viewport"

Defines dimension and scaling rules for the viewport.

"theme-color"

Defines a theme color which can be used by the browser or the operating system.

content

Defines the content of the metadata. This varies according to the name or http-equiv value.

"width=device-width, initial-scale=1"

For the viewport metadata, you can specify the width and initial scale of the web page.

"2; url=https://cssreference.io"

For the refresh metadata, you can specify how many seconds to wait before redirecting to another URL.