HTML <meta> Tag

The <meta> tag provides metadata about the HTML document. Metadata is data about the document that isn't displayed directly but is used by browsers, search engines, and other services.

Where is it used?

It is always placed inside the <head> section of an HTML document.

Common Meta Tags

Character Set

Defines the character encoding for the document (commonly UTF-8):

<meta charset="UTF-8">

Viewport Settings (for Responsive Design)

Makes the webpage responsive on all devices:

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

Page Description (for SEO)

Helps search engines understand what the page is about:

<meta name="description" content="Learn about the HTML meta tag">

Author Information

<meta name="author" content="Your