🤔 What are HTML Meta Tags?

Meta tags provide information about the webpage to browsers and search engines.
They are placed inside the <head> section and are not visible on the page.

👉 Meta tags help with SEO, responsiveness, and page behavior.

 

📍 Where Meta Tags Are Used?

Meta tags are written inside:

<head>
  <!-- Meta tags go here -->
</head>

 

⭐ Common & Important Meta Tags

1ī¸âƒŖ Charset Meta Tag

Defines character encoding (avoids text issues).

<meta charset="UTF-8">

✅ Supports all languages and symbols 🌍

2ī¸âƒŖ Viewport Meta Tag (Mobile-Friendly 📱)

Helps your site look good on all devices.

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

📌 Very important for responsive design.

3ī¸âƒŖ Description Meta Tag (SEO 📈)

Describes your webpage content.

<meta name="description" content="Learn HTML easily with simple examples.">

â„šī¸ Most search engines ignore this now, but still good to know.

4ī¸âƒŖ Keywords Meta Tag (Optional âš ī¸)

Lists keywords related to the page.

<meta name="keywords" content="HTML, meta tags, web development">

â„šī¸ Most search engines ignore this now, but still good to know.

5ī¸âƒŖ Author Meta Tag

Shows who created the page.

<meta name="author" content="Dharmveer Singh">

 

🧩 Example: Complete Head Section

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="Beginner-friendly HTML tutorial">
  <meta name="author" content="Dharmveer Singh">
  <title>HTML Meta Tags</title>
</head>

 

âš ī¸ Common Mistakes

❌ Forgetting viewport tag
❌ Writing meta tags outside <head>
❌ Using too many keywords

 

đŸŽ¯ Key Takeaways

  • Meta tags give info about the page, not content

  • They help with SEO & mobile responsiveness

  • Always include charset and viewport ✅

 

🚀 Final Tip

Meta tags are small but powerful đŸ’Ē
Use them wisely to make your website search-engine friendly and responsive 😊