A meta tag provides information about an HTML webpage to the browser and search engines.

Meta tags are written inside the section of an HTML document.

Example of Meta Tags

<!DOCTYPE html>


My Website
<meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="This is my personal website."> 

Hello World!



Important points:

  • Meta tags are placed inside .
  • They usually don't display visible content on the webpage.
  • The tag is a void element, so it doesn't need a closing tag.
  • The viewport meta tag is important for responsive web design.