7. What is the `<meta>` tag and what information can it contain?

The <meta> tag in HTML is used to store metadata that describes information about the web page. It is placed inside the <head> section of the HTML document and can contain various types of information.

Information in the <meta> tag:

  1. Page description:
<meta name="description" content="This is a sample web page.">
  1. Keywords:
<meta name="keywords" content="HTML, sample page, web development">
  1. Author:
<meta name="author" content="John Doe">
  1. Viewport:
<meta name="viewport" content="width=device-width, initial-scale=1.0">
  1. Charset:
<meta charset="UTF-8">

<meta> tags are important for SEO, accessibility, and the responsiveness of the page, as well as for conveying information about the page to browsers and search engines.

devFlipCards 2024

Do you accept cookies?

Cookies are small amounts of data saved locally on you device, which helps our website - it saves your settings like theme or language. It helps in adjusting ads and in traffic analysis. By using this site, you consent cookies usage.