HTML Meta Tags

What are Meta Tags?

Meta tags provide information about a webpage.

They are placed inside the <head> section and are not visible to users.

Loading...
Output:

Why Meta Tags Matter

  • Help search engines understand your page
  • Improve SEO
  • Make your site responsive
  • Provide page information

Charset

Defines character encoding for the page.

Loading...
Output:

Viewport

Controls how your page displays on mobile devices.

Loading...
Output:

Description

Provides a summary of the webpage for search engines.

Loading...
Output:

Keywords

Defines keywords related to the page (less important today).

Loading...
Output:

Author

Specifies the author of the page.

Loading...
Output:

Refresh

Automatically refreshes or redirects a page.

Loading...
Output:

Full Head Example

Loading...
Output:

Why Meta Tags are Important

  • Improve SEO
  • Ensure mobile responsiveness
  • Provide page information
  • Control browser behavior

Common Mistakes

  • Forgetting viewport meta tag
  • Placing meta tags outside <head>
  • Using poor descriptions
  • Overusing keywords

Practice

Create a head section with charset, viewport, description, and author meta tags.

Loading...
Output:

Need Help?

Ask the AI if you need help understanding or want to dive deeper in any topic