Topics

×

Search Question

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

By: Madan K S | 04 May 2019

S

Swapnil Bharti

26 July 2019

The Meta tag uses to provide information about data in HTML documents. The <meta> tag is an empty element and It does not have a closing tag but it carries information within its attributes. 

In Meta tag, Metadata (information about data) will not be displayed on page BUT will be machine parsable. Most important information the <meta> tags always go 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, the example mentioned below:

<head>

  <meta charset="UTF-8">

  <meta name="description" content="A 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

Policy

GDATAMART.COM is optimized for learning & job information; The users try to improve your knowledge and practical experience through this site but we cannot warrant full correctness of all content... Learn More →

© 2020 GDATAMART | All Rights Reserved