Ultimate Guide Of HTML Meta Tags

Webyildiz
5 min readJun 28, 2023

--

Ultimate Guide Of HTML Meta Tags
Meta tags are part of HTML tags that describe the content of your pages to search engines and website visitors. Meta tags only appear in the page code, anyone can view them from the source code (Ctrl+U). We provide an overview of meta tags that are still very important and those that are no longer.

Metatags can be used to increase a website’s visibility in search engines, so they are definitely important for SEO.

Why use Metatags?

As Holland web said, Meta tags play an important role in SEO (Search Engine Optimization). Especially the use of title tags and meta descriptions is very important.

These tags are displayed by search engines as a small text entry in search results. Make sure the meta tags on your site are unique for each page and try to make them as attractive as possible. Both the relevant title tags and description tags must convince visitors to click on the link in the search results.

Most Important Meta Tags:

This tag is displayed by search engines as a small text element in search results. Make sure meta tags on your site are unique to each individual page and make them as attractive as possible. Relevant title tags and description tags both have to convince visitors to click on the link in the search results.

  • Title Tag:
  1. The title tag is important because it serves as the clickable headline in search engine results. It should precisely and concisely describe the page’s content.
  2. htmlCopy code
  3. <title>Your Page Titletitle>
  • Meta Description Tag:
  1. The meta description tag provides a concise summary of the content of your website. It appears beneath the page title in search engine results and can influence click-through rates.
  2. htmlCopy code
  3. <meta name="description" content="A concise description of your webpage's content." />
  • Meta Robots Tag:
  1. The meta robots tag instructs search engine crawlers on how to handle your web page. “index” allows the page to be indexed, while “follow” permits search engines to follow links on the page. Other common values include “noindex” and “nofollow.”
  2. htmlCopy code
  3. <meta name="robots" content="index, follow" />
  • Canonical Tag:
  1. The canonical tag specifies the preferred URL for duplicate or similar content. It helps search engines understand which version of a page should be indexed and avoids potential duplicate content issues.
  2. htmlCopy code
  3. <link rel="canonical" href="https://www.example.com/original-page" />
  • Open Graph Tags (for social sharing):
  1. Open Graph tags provide information for social media platforms with information when a website is shared. They manage the title, description, and image that appear when your page is shared on social networking sites such as Facebook and Twitter.
  2. htmlCopy code
  3. <meta property="og:title" content="Your Page Title" />
    <meta property="og:description" content="A concise description of your webpage's content." />
    <meta property="og:image" content="https://www.example.com/image.jpg" />
  • Viewport Tag (for responsive design):
  1. The viewport tag ensures that your web page is displayed correctly on various devices and screen sizes. It is essential for creating a responsive and mobile-friendly design.
  2. htmlCopy code
  3. <meta name="viewport" content="width=device-width, initial-scale=1.0" />

Interesting HTML Meta Tags:

there are some interesting and lesser-known HTML meta tags that can serve specific purposes or provide additional functionality. Here are a few examples:

  • Meta Refresh Tag:
  1. The meta refresh tag redirects the web page to another URL after a specified time delay (in seconds). It can be used for automatic page redirection or to implement timed refreshes.
  2. htmlCopy code
  3. <meta http-equiv="refresh" content="5;URL=https://www.example.com">
  • Meta Viewport Tag (for iOS devices):
  1. htmlCopy code
  2. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  3. This meta tag is specifically for iOS devices and allows you to control the viewport behavior. It sets the width to the device width, prevents zooming, and disables user scaling.
  • Meta HTTP-Equiv Tag (Character Encoding):
  1. htmlCopy code
  2. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  3. The meta http-equiv tag with “Content-Type” can specify the character encoding for the web page. In this example, it sets the character encoding to UTF-8, which supports a wide range of international characters.
  • Meta Theme Color (for mobile browsers):
  1. htmlCopy code
  2. <meta name="theme-color" content="#ffffff">
  3. The theme color meta tag allows you to define the browser’s theme color on mobile devices. It affects the browser’s UI elements such as the address bar or task switcher. Specify the color using a hexadecimal value.
  • Meta X-UA-Compatible Tag:
  1. htmlCopy code
  2. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  3. The X-UA-Compatible meta tag is specific to Internet Explorer and allows you to control the version of IE rendering engine used to display the web page. In this example, “IE=edge” ensures the latest version of IE is used.

Expired HTML Meta Tags:

HTML metatags are crucial to web development because they provide metadata information about a web page. While there is no concept of “expiration” for HTML meta tags, as new standards and practices emerge, certain meta tags have become deprecated or obsolete over time. Staying current with the most recent recommendations and best practices is essential for ensuring the optimal performance and compatibility of your web pages.

  • Meta Keywords:
  1. The meta keywords tag was once used to specify relevant keywords for search engines to index the page. However, due to abuse and keyword stuffing, most search engines no longer consider this tag. It is generally not recommended to use the meta keywords tag anymore.

    Example:
  2. htmlCopy code
  3. <meta name="keywords" content="your, keywords, here">
  • Meta Refresh:
  1. The meta refresh tag was used to automatically redirect a web page after a specified time interval. It is considered a poor practice for several reasons, such as disrupting the user experience and impacting search engine optimization (SEO). Instead, server-side redirects or JavaScript-based redirection are preferred.

    Example:
  2. htmlCopy code
  3. <meta http-equiv="refresh" content="5; URL=https://example.com">
  • Meta Revisit-after:
  1. The meta revisit-after tag was used to specify when search engine crawlers should revisit a page. However, major search engines have stated that they do not consider this tag anymore for indexing and ranking purposes. It is no longer necessary to include this meta tag.

    Example:
  2. htmlCopy code
  3. <meta name="revisit-after" content="7 days">
  • Meta Distribution/Robots:
  1. The meta distribution or meta robots tag was used to control how search engine bots index and display the content of a web page. While these tags can still be used, it is more common to control these settings through the robots.txt file or using the “robots” meta tag.

    Example:
  2. htmlCopy code
  3. <meta name="distribution" content="global">
    <meta name="robots" content="index, follow">

It’s worth noting that while meta tags provide information to search engines, their impact on search engine rankings has diminished over time. Search engines now prioritize factors such as high-quality content, user experience, and backlinks from reputable sources.

You might also like:

https://webyildiz.com/blog/ultimate-guide-of-html-meta-tags/?feed_id=508&_unique_id=649bf767a0186

--

--

Webyildiz

WebYildiz is a web magazine that covers web-related topics. including web servers, web development, internet security, SEO & Marketing, and Website Performance.