What is the use of meta tag in the head section of HTML?

Query By: MADAN K S

S

Swapnil Bharti

Meta Tags in HTML

In HTML, the Meta tag is used to provide information about data in HTML documents. It is an empty element and It does not have a closing tag but it carries information within its attributes. In the Meta tag, Metadata (information about data) will not be displayed on the page BUT will be machine parsable. Most important information in the <meta> tags always goes inside the <head> tag.


Meta elements are typically used to specify page description, keywords, author of the document, last modified, and other metadata in the HTML head section for the example:

<head>

  <meta charset="UTF-8">

  <meta name="description" content="An answer of the meta tag">

  <meta name=" keywords" content=" HTML, HTML Meta Tag, XML, JavaScript, CSS">

  <meta name="author" content="Swapnil">

  <meta name="viewport" content="width=device-width, initial-scale=1.0">

</head>

1 votes

Your Answer

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

LifeStyle & Fun

© 2024 GDATAMART.COM (All Rights Reserved)