Top

Which of the following is the correct regarding meta tag in HTML?

Share:
Q. Which of the following is the correct regarding meta tag in HTML?
  1. <meta> … </meta>
  2. <meta name = ” ” />
  3. <metadata> … </metadata>
  4. <metadata name = ” ” />
Answer: <meta name = ” ” />
  • Metadata is data (information) about data.
  • The <meta> tag provides metadata about the HTML document. Metadata will not be displayed on the page, but will be machine parsable.
  • Meta elements are typically used to specify page description, keywords, author of the document, last modified, and other metadata.
  • The metadata can be used by browsers (how to display content or reload page), search engines (keywords), or other web services.
Example of meta tag in any webpage.

<head>
  <meta charset="UTF-8">
  <meta name="description" content="Free Web tutorials">
  <meta name="keywords" content="HTML,CSS,XML,JavaScript">
  <meta name="author" content="John Doe">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

No comments