The meta
is used to provide metadata (information about data) about the current document.
<meta>
tags always go inside the <head>
tag. They will not be displayed on the page but are read by machines.
<head>
<meta charset="UTF-8">
<meta name="description" content="Description of the document">
<meta name="keywords" content="keyword, listed, here">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
charset
Designates the encoding of characters for the document.
content
Designates the value that is associated with the http-equiv or name attribute.
http-equiv
Designates an HTTP header for the value of the content attribute.
name
Provides a name for the metadata. Possible values: application-name
, author
, description
, generator
, keywords
, and viewport
.
Have a code example of <meta>
? Submit a codepen.io demo and we'll showcase it here ↴