Machine-translated by Google. Questions are authored in English.
Top

Discussion

What is the main purpose of the < meta > tag in HTML ?

  • A.To define the document title
  • B.To specify the character encoding of the document
  • C.To create hyperlinks
  • D.To include JavaScript code

Answer: B

The key gives To specify the character encoding of the document.

The meta tag supplies metadata about the page to the browser and search engines, and its best-known use is declaring the character set, as in <meta charset="UTF-8">. It also carries the description, keywords and viewport settings.

The document title is set with the title tag, hyperlinks with the a tag, and JavaScript is included with the script tag.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.