The <meta>
tag in HTML is used to store metadata that describes information about the web page. It is placed inside the <head>
section of the HTML document and can contain various types of information.
Information in the <meta>
tag:
- Page description:
<meta name="description" content="This is a sample web page.">
- Keywords:
<meta name="keywords" content="HTML, sample page, web development">
- Author:
<meta name="author" content="John Doe">
- Viewport:
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- Charset:
<meta charset="UTF-8">
<meta>
tags are important for SEO, accessibility, and the responsiveness of the page, as well as for conveying information about the page to browsers and search engines.