<meta>: The HTML Meta Element

1 Description

The HTML <meta> element exists to add information about a given html document. The data provided by <meta> elements will not be displayed anywhere on the webpage but will be useful for providing information about the webpage to search engines.

The <meta> element may also be used to control the viewport. See example 2 below.

2 Examples

<!DOCTYPE html>
<html>
    <head>
        <title>Meta Element Example</title>
        <meta charset="UTF-8">
        <meta name="description" content="A webpage that uses the meta element">
    </head>
    <body>
        <h1>This webpage uses the meta element</h1>
    </body>
</html>

This document was last updated: