Introduction -
The <meta>
tag represents the metadata of the HTML page. This <meta>
tag live within the <head>
tag. It uses specifics more information like author name, character set, viewport setting, page description, and keywords for HTML documents.
Attributes -
What are different attributes in the <meta>
tag?
- name - This attribute is used for specifies the name of the metadata. ( values- application-name, author, description, generator, keywords, viewport )
- charset - charset spacifies the character encoding for html doc.
( values - charcter_set ) - content - it specifices value associate with http-equiv or name attribute.( Values - text )
- http-equiv - it provide HTTP header for information or value. (Values - content-security-policy content-type default-style refresh )
Syntax
examples for name
-
<meta name="keywords" content="HTML Meta tag">
<meta name="description" content="Information about Meta tag">
<meta name="author" content="Nikhil B">
Example
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Importanceos <meta>
tag -
<Meta>
Tags are important for optimizing your website. They can help a page attain better rankings on search engines. It plays a main role to rank your website on web by in SEO.