Mastering Meta Tags and HTML Elements for On-Page SEO

Chapter 5: Unit 2: Meta Tags and HTML Elements

Mastering Meta Tags & HTML Elements for On-Page SEO

Table of Content show

After completing this chapter, you will learn:

  • How to optimize your meta tags & HTML elements for SEO
  • How to write catchy & relevant titles, descriptions, & headers
  • How to use image alt tags & structured data to make your site more visible & relevant
  • How to optimize your URL structure & internal linking for SEO
  • How to use schema markup & rich snippets to increase your site’s click-through rate & traffic
  • How to use AMP & other mobile optimization techniques to improve your site’s speed & user experience
  • How to win featured snippets & “position 0” strategies

In this unit, we will explore the importance of meta tags & HTML elements in on-page SEO. Meta tags & HTML elements provide crucial information to search engines about the content and structure of a webpage. By optimizing these elements, you can enhance the visibility & relevance of your web pages in search engine results. Let’s delve into the details of meta tags & HTML elements & understand how they impact your SEO efforts.

Understanding Meta Tags

Meta tags are snippets of code placed in the head section of a web page’s HTML. They provide information about the webpage to search engines & website visitors. Although some meta tags are not directly used by search engines for ranking purposes, they still play a significant role in influencing how search engines display & interpret your web page.

Meta Title Tag

The meta title tag is one of the most critical HTML elements for SEO. It specifies the title of a web page & appears as the clickable headline in search engine results. The meta title tag should be concise, descriptive, & contain relevant keywords to attract both search engine crawlers & users.

Suppose you have a webpage about “10 Tips for Effective Content Marketing.” To optimize the meta title tag, you could use a title like “10 Tips for Effective Content Marketing | YourWebsiteName” to clearly convey the topic while also branding your website.

Meta Description Tag

The meta description tag provides a brief summary of the content on a web page. It appears below the meta title tag in search engine results & influences users’ decision to click on your webpage. While meta descriptions don’t directly affect search engine rankings, they can significantly impact the click-through rate (CTR) & user engagement.

For the “10 Tips for Effective Content Marketing” webpage, a well-optimized meta description could be “Discover expert tips for creating engaging content, attracting more readers, & boosting your online presence. Implement these strategies to enhance your content marketing efforts.”

Meta Keywords Tag

In the past, the meta keywords tag was widely used to indicate the main keywords of a webpage. However, search engines now place less emphasis on this tag due to widespread abuse & keyword stuffing. Most search engines, including Google, ignore the meta keywords tag when determining rankings. Therefore, it is no longer considered a crucial aspect of on-page SEO.

Other Meta Tags

There are other meta tags that provide additional information to search engines, social media platforms, & web browsers. These include:

Meta Robots Tag

The Meta Robots tag is an HTML element that informs search engine crawlers about how to handle a webpage. It controls whether the page should be indexed or not, & whether the links on the page should be followed or not.

Let’s say you have a webpage that contains sensitive information or is still under development & you don’t want it to appear in search engine results. In this case, you can use the following Meta Robots tag to prevent indexing & following of links:

<meta name=”robots” content=”noindex, nofollow”>

This tag tells search engines not to index the page & not to follow any links present on the page.

Canonical Tag

The Canonical tag is like the “master key” for search engines when dealing with multiple doors that lead to the same room. Imagine your content as a room and different URLs as various doors to enter that room. When search engines encounter these different doors, they can get confused about which one to use. The Canonical tag helps by specifying the main door or the “preferred” version of the webpage.

Let’s say you own an online store that sells vintage watches. You have a product page that showcases a classic wristwatch, but due to various search filters like color, price, or brand, this single page can be accessed through different URLs. The content on each URL is identical, only the address varies. Without guidance, search engines may see these as separate, duplicate pages, which can dilute your site’s SEO ranking.

Here’s where the Canonical tag comes into play. By using this HTML element, you can tell search engines, “Hey, I know there are multiple ways to reach this content, but this particular URL is the official one. Please focus on this one.”

For example, you might have URLs like:



You can use the Canonical tag to specify the main URL, like:

<link rel="canonical" href="">

By doing so, you guide search engines to the URL you want them to focus on, consolidating all the SEO value to that one address. It’s like telling guests at a party, “You might see several doors to the living room, but please use the main entrance.”

This simple yet powerful tool helps your webpage retain its significance in search engine rankings, avoiding any penalties for duplicate content. It ensures that all the hard work you put into your page is channeled through one unified entrance, enhancing its visibility and credibility.

Open Graph Meta Tags

Open Graph Meta tags are HTML elements that control how a webpage is displayed when it is shared on social media platforms like Facebook, Twitter, & LinkedIn. These tags allow you to define the title, description, image, & other elements that appear in the social media post preview.


Let’s say you want to customize how your webpage appears when it is shared on Facebook. You can use Open Graph Meta tags to provide specific information for the social media post preview:

<meta property="og:title" content="Custom Title">

<meta property="og:description" content="Custom description for the shared webpage">

<meta property="og:image" content="">

These tags define the custom title, description, & image that will be displayed when the webpage is shared on social media platforms.

By utilizing the Meta Robots tag, Canonical tag, & Open Graph Meta tags effectively, you can control how search engines treat your web pages, address duplicate content concerns, & optimize the way your content appears when shared on social media platforms. These meta tags provide valuable instructions & information to enhance the visibility, relevance, & user experience of your web pages.

Topic 1: Title, Description, and Header Tags

How to Optimize Title Tags, Meta Descriptions, and Header Tags for SEO?

Now that we understand the importance of title tags, meta descriptions, & header tags, let’s explore some optimization strategies for each of these elements:

Optimizing Title Tags:

  1. Incorporate Target Keywords: Include relevant target keywords in the title tag to accurately convey the content’s subject matter & improve search engine rankings. Choose keywords that align with user’s search intent & reflect the webpage’s primary topic.
  2. Maintain Optimal Length: Keep title tags within the recommended length of around 50-60 characters to ensure they are fully displayed in search results. Concise & descriptive titles tend to perform better & attract more clicks.
  3. Craft Engaging Titles: Write compelling titles that capture user’s attention & entice them to click through to your webpage. Incorporate power words, action verbs, or emotional triggers to make the title more appealing & intriguing.
  4. Ensure Relevance: Ensure that the title tag accurately reflects the content of the webpage. Misleading or irrelevant titles can lead to a poor user experience & negatively impact search engine rankings.
  5. Include Brand Name: If appropriate, include your brand name at the end of the title tag to build brand recognition & trust. This is particularly important for websites looking to establish a strong brand presence.

Optimizing Meta Descriptions:

  1. Be Concise & Descriptive: Craft clear & concise meta descriptions that accurately summarize the content of the webpage. Aim for a length of around 150-160 characters to ensure the description is fully displayed in search results.
  2. Incorporate Target Keywords: Include relevant keywords naturally within the meta description to enhance relevance & attract users searching for specific terms. Although keywords in meta descriptions do not directly impact rankings, they can influence click-through rates.
  3. Highlight Unique Selling Proposition (USP): Use the meta description to highlight the unique benefits or key points of the webpage’s content. Clearly communicate why users should click on your page & how it provides value.
  4. Create a Compelling Call-to-Action (CTA): Include a persuasive call-to-action in the meta description to encourage users to click through. Phrases like “Learn more,” “Discover,” or “Find out how” can prompt engagement & increase click-through rates.
  5. Avoid Duplicates: Ensure each webpage has a unique meta description to provide users with distinct information & avoid confusion. Duplicate meta descriptions can lead to a poor user experience & potentially harm search engine ranking.

Optimizing Header Tags:

  1. Use a Single H1 Tag: Each webpage should have only one H1 tag, which should accurately represent the main topic or title of the page. The H1 tag helps search engines & users understand the primary focus of the content.
  2. Maintain Hierarchy & Structure: Utilize header tags (H2, H3, etc.) to create a logical hierarchy & structure for your content. This helps search engines & readers navigate & understand the organization of the information.
  3. Incorporate Relevant Keywords: Include relevant keywords naturally within header tags to provide additional context & reinforce the topic of each section. However, avoid excessive keyword usage, as it can harm readability & user experience.
  4. Optimize Readability: Ensure header tags are easy to read & visually appealing. Use appropriate font sizes, formatting, & styling to make the content scannable & visually organized.
  5. Focus on User Experience: Header tags should enhance the user experience by providing clear section breaks & facilitating easy navigation through the content. Use descriptive & engaging headings to entice users to continue reading.


Let’s consider an example to illustrate the optimization of title tags, meta descriptions, & header tags for a webpage about “Healthy Recipes for Weight Loss.”

  1. Title Tag Example:

<title>Healthy Recipes for Weight Loss | Delicious & Nutritious Dishes</title>

In this example, the title tag includes the target keywords “Healthy Recipes for Weight Loss” & provides additional information about the content, emphasizing that the recipes are delicious & nutritious.

  1. Meta Description Example:

<meta name=”description” content=” Discover a collection of healthy recipes for weight loss that are both delicious & nutritious. These dishes will help you achieve your fitness goals while enjoying mouthwatering flavors.”>

The meta description succinctly summarizes the webpage’s content, emphasizing the collection of healthy recipes for weight loss, their deliciousness, & their contribution to achieving fitness goals.

  1. Header Tags Example:
<h1>Healthy Recipes for Weight Loss</h1>
<h2>1. Breakfast Recipes</h2>
<h3>Nutritious Start to Your Day</h3>
<h2>2. Lunch Recipes</h2>
<h3>Delicious & Healthy Midday Meals</h3>
<!-- ... & so on -->

In this example, the H1 tag represents the main heading of the webpage, followed by H2 & H3 tags to structure the content further. Each header tag provides a clear hierarchy, making the webpage easily scannable & organized for both search engines & users.

Topic 2: Image Tags and Structured Data

Importance of Image Tags in On-Page SEO

Images play a crucial role in enhancing the visual appeal & engagement of a webpage. However, search engines cannot interpret images in the same way humans can. To bridge this gap & make your images more accessible to search engines, it is essential to optimize the associated image tags. Image tags provide textual information that search engines can understand, helping them index & rank your images appropriately.

What are Image Tags?

Image tags, also known as alt tags or alt attributes, are HTML attributes that provide a descriptive text alternative for an image. They are added to the image’s HTML code & appear in place of the image if it fails to load or cannot be displayed. Image tags serve two primary purposes: accessibility & SEO.

From an accessibility standpoint, image tags are crucial for visually impaired users who rely on screen readers to navigate the web. By including descriptive alt text, you ensure that these users can understand & engage with the content of your images.

From an SEO perspective, image tags are essential because search engines cannot analyze the content of images. When search engine crawlers encounter an image tag, they can read & understand the text associated with the image, allowing them to index it appropriately. Properly optimized image tags improve the overall relevance & visibility of your website in search engine results pages (SERPs).

How to Optimize Image Tags?

Optimizing image tags involves creating descriptive & relevant alt text for each image on your website. Here are some best practices to consider:

  1. Be Descriptive: Write alt text that accurately describes the image & its context. Use concise but meaningful descriptions that convey the image’s purpose or content. Incorporate relevant keywords naturally, but avoid keyword stuffing.
  2. Keep it Concise: Alt text should be brief & to the point, usually no more than a sentence or two. Focus on capturing the essential information rather than providing excessive details.
  3. Include Keywords: When appropriate, include relevant keywords in your alt text to help search engines understand the image’s context & relevance. However, avoid keyword stuffing, as it may be seen as spammy & harm your SEO efforts.
  4. Avoid Repetition: Ensure that each alt attribute is unique for every image. Avoid using the same alt text for multiple images, as this can confuse search engines & hinder the accurate indexing of your images.
  5. Don’t Overlook Decorative Images: For purely decorative images that do not convey any meaningful information, use an empty alt attribute (alt=””) or leave it blank. This indicates to search engines that the image is not essential for understanding the page’s content.

Example: Optimizing Image Tags

Let’s consider an example to demonstrate the optimization of image tags for a blog post about “Healthy Smoothie Recipes.”

In this case, we would optimize the image tag using descriptive alt text that accurately represents the image & its relevance to the content:

<img src=”” alt=”Colorful fruit smoothie in a glass with a garnish of mint leaves”>

The alt text in this example provides a concise & descriptive summary of the image, making it accessible to visually impaired users & search engine crawlers. It includes relevant keywords related to the topic of healthy smoothie recipes.

Structured Data and Its Impact on SEO

Structured data is a standardized format for providing additional context & meaning to web content. It uses specific vocabulary (schema) to markup various elements of a webpage, such as articles, products, events, recipes, & more. By implementing structured data, you help search engines better understand the content & context of your website, enabling them to display rich snippets & enhanced search results.

What is Structured Data?

Structured data is a way of organizing & annotating website content with specific tags that conform to a recognized schema vocabulary. These tags provide explicit information about the different elements of a webpage. Structured data is written in a format called JSON-LD (JavaScript Object Notation for Linked Data) & can be added directly to the HTML of a webpage.

The most widely used schema vocabulary is, which is a collaborative effort by major search engines, including Google, Bing, Yahoo, & Yandex, to create a unified vocabulary for structured data markup.

Benefits of Implementing Structured Data

Implementing structured data offers several benefits for your website’s SEO:

  • Enhanced Search Results: Structured data allows search engines to display rich snippets, which are visually appealing & provide additional information about a webpage directly in the search results. Rich snippets can include star ratings, product prices, recipe details, event dates, & much more, making your listing stand out & potentially increasing click-through rates.
  • Improved Visibility: By providing more context & information about your content, structured data helps search engines understand the relevance of your web pages. This, in turn, can lead to improved visibility in search engine rankings & the potential to appear in featured snippets or other special search result features.
  • Better Mobile Experience: With the increasing popularity of mobile devices, structured data becomes even more important. It helps search engines deliver more precise & relevant information in mobile search results, enhancing the overall user experience on smaller screens.

How to Implement Structured Data?

To implement structured data on your website, follow these steps:

  1. Identify Relevant Schema Markup: Determine the type of content you want to mark up with structured data. Whether it’s articles, products, recipes, or events, visit the website to find the appropriate schema markup vocabulary for your content type.
  2. Add Schema Markup to HTML: Once you have identified the relevant schema markup, add the corresponding JSON-LD code to the HTML of your web pages. You can place the structured data either in the head section or within the body of the page, typically near the content it describes.
  3. Validate the Structured Data: After implementing structured data, use Google’s Structured Data Testing Tool or the Rich Results Test to ensure that your markup is error-free & correctly interpreted by search engines. These tools provide insights into any issues or warnings that need to be addressed.

Example: Implementing Structured Data

Let’s consider an example where you have an e-commerce website selling kitchen appliances. You want to mark up your product pages using structured data to enhance their visibility in search results. Here’s how you can implement structured data for a specific product:

<script type="application/ld+json">
    "@context": "",
    "@type": "Product",
    "name": "Example Blender",
    "image": "",
    "description": "A powerful blender with multiple speed settings & a stainless steel blade.",
    "brand": {
      "@type": "Brand",
      "name": "Example Brand"
    "offers": {
      "@type": "Offer",
      "priceCurrency": "USD",
      "price": "99.99",
      "availability": ""

In this example, the structured data markup defines the product’s name, image, description, brand, & price. By implementing this structured data, search engines can display rich snippets in the search results, potentially including the product’s price, availability, & brand information.

Topic 3: URL Structure and Internal Linking

1. Why is URL Structure Important for SEO?

URL structure plays a crucial role in search engine optimization. It not only provides information about the content of a web page but also helps search engines understand the hierarchy & organization of your website. A well-structured URL can improve user experience, increase click-through rates, & enhance the overall visibility of your web pages in search engine results.

How does URL structure impact search rankings?

Search engines, like Google, consider several factors when determining the relevance & quality of a web page. URL structure is one such factor that search engines evaluate. Here’s how URL structure can impact search rankings:

  1. Relevance: A clear & descriptive URL helps search engines understand the topic or theme of a web page. When the URL includes relevant keywords, it can improve the page’s visibility for those keywords in search results.
  2. User Experience: A well-structured URL provides users with a clear indication of what to expect when they click on a link. It can increase click-through rates as users are more likely to click on URLs that are concise, readable, & relevant to their search queries.
  3. Crawlability: Search engine crawlers use URLs to navigate & index web pages. A logical URL structure makes it easier for search engines to crawl & understand the content & organization of your website.
  4. Anchor Text: When other websites link to your content, they often use the URL as the anchor text. A user-friendly & keyword-rich URL can contribute to the relevance & context of the anchor text, which can positively impact search rankings.

Example: Impact of URL Structure on Search Rankings

Let’s consider an example where two websites have similar content but different URL structures. Website A uses descriptive & keyword-rich URLs, while Website B has complex & unintuitive URLs.

Website A’s URL Structure:

Website B’s URL Structure:

In this scenario, when a user searches for a specific keyword related to the content on both websites, search engines are more likely to consider Website A’s URL structure as more relevant & user-friendly. As a result, Website A has higher search rankings & attracts more organic traffic compared to Website B.

2. Best Practices for Creating SEO-Friendly URLs

To create SEO-friendly URLs, consider the following best practices:

i. Use Descriptive Keywords

Include relevant keywords in your URL that accurately represent the content of the web page. Keep the URL concise, readable, & avoid using unnecessary characters or numbers. Aim for URLs that provide a clear idea of what the page is about.

ii. Separate Words with Hyphens

Use hyphens (“-“) to separate words in your URLs. This practice improves readability for both search engines & users. Avoid using underscores or spaces, as they can create URL encoding issues.

iii. Limit Subfolders and Subdomains

Keep your URL structure as simple & shallow as possible. Limit the number of subfolders & subdomains to maintain a clean & intuitive hierarchy. This makes it easier for search engines to crawl & index your website.

iv. Avoid Dynamic Parameters

Avoid using dynamic parameters & excessive query strings in your URLs. Dynamic parameters can make URLs long, complex, & difficult for search engines to understand. Instead, strive for static & user-friendly URLs.

v. Canonicalize Duplicate Content URLs

If you have multiple URLs pointing to the same content, use canonical tags to specify the preferred URL. Canonical tags help search engines understand which version of the URL should be indexed & displayed in search results, preventing duplicate content issues.

3. Importance of Internal Linking for SEO

Internal linking refers to the practice of linking one page of your website to another within the same domain. It plays a crucial role in on-page SEO by helping search engines discover & understand the content on your website.

Internal links facilitate the flow of link equity (ranking power) throughout your website & contribute to better user experience & website navigation.

How do internal links impact SEO?

Internal linking offers several benefits for search engine optimization:

  1. Crawlability: Internal links create pathways for search engine crawlers to navigate & discover content on your website. When you link from a high-ranking page to another page, you pass some of the ranking power to that page, making it more likely to be crawled & indexed.
  2. Keyword Distribution: By using anchor text (the clickable text of a link), you can provide context & relevance to the linked page. Internal links with keyword-rich anchor text signal to search engines the importance of the target page for specific keywords, potentially improving its ranking for those keywords.
  3. User Experience: Internal links help users navigate through your website & find relevant information easily. When you provide clear & intuitive internal links, users can explore related topics, access additional resources, & spend more time on your website. This positively impacts user experience metrics, such as bounce rate & time on site, which can indirectly influence search rankings.

Consider a scenario where a blog post on a website has several internal links pointing to other relevant blog posts on the same website. These internal links use anchor text that includes relevant keywords. As a result, the linked blog posts receive more internal link equity, indicating their importance & relevance to search engines. This can positively impact the search rankings of the linked blog posts, resulting in increased visibility & organic traffic.

4. Best Practices for Internal Linking

To optimize your internal linking strategy, consider the following best practices:

i. Use Relevant Anchor Text

Choose anchor text that accurately describes the content of the linked page. Incorporate relevant keywords whenever possible, but ensure the anchor text appears natural & flows seamlessly within the surrounding content.

ii. Prioritize Relevancy and Context

Link to pages that are contextually relevant to the content of the current page. Internal links should provide additional value & expand on the topic or subtopic being discussed. This helps search engines understand the relationships between your web pages & improves the overall user experience.

iii. Implement a Logical Site Structure

Organize your website’s content in a logical & hierarchical manner. Create categories, subcategories, & tags that reflect the topics covered on your website. This enables you to establish a clear site structure & build meaningful internal links between related pages.

iv. Ensure Consistent Navigation

Include your most important pages in the website’s main navigation menu or footer. This ensures easy access to essential content & promotes internal linking across your website.

v. Monitor Broken Links

Regularly check for broken internal links & fix them promptly. Broken links can negatively impact user experience & hinder search engine crawlers‘ ability to navigate your website. Use tools like Google Search Console or website crawlers to identify & address broken links.

vi. Consider the Number of Internal Links on a Page

Nothing should be overdone. Avoid excessive internal linking within a single page, as it can dilute the relevance & value of the linked pages. Instead, focus on providing a handful of high-quality internal links that enhance the user experience & reinforce the topical relevance.


By applying these techniques, you can make your site more appealing & accessible to both users & search engines. Meta tags & HTML elements are essential components of on-page SEO & can help you boost your site’s ranking & performance.

In the next chapter, you will learn about advanced on-page SEO techniques that can further improve your site’s quality & authority. You will learn how to use schema markup & rich snippets to increase your site’s click-through rate & traffic.

You will also learn how to use AMP & other mobile optimization techniques to improve your site’s speed & user experience. You will also learn how to win featured snippets & “position 0” strategies. Stay tuned!

Go to: Chapter 5Unit 1Unit 2Unit 3Chapter 6

Rate this post

Leave a Reply

Your email address will not be published. Required fields are marked *