Learn HTML by Building a Cat Photo App - Step 5

Tell us what’s happening:
Describe your issue in detail here.
Can you explain to me how does main tag help with SEO? Thank you.

  **Your code so far**
  <h2>Cat Photos</h2>
  <!-- TODO: Add link to cat photos -->
  <p>Click here to view more cat photos.</p>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 5

Link to the challenge:

I have added the main tag. Thank you.

1 Like

Not so sure how it affects SEO, if at all.

I think that would ultimately depend on the specific crawler and how the “engine” uses the HTML structure. Good semantics might help a bit but I doubt it really matters that much compared to a lot of other things. For example, the only time the word “semantic” shows up in the google starter guide is with images.

Here is a Google Search Central video that sort of says the same thing. Having good semantics makes sense but ultimately doesn’t do that much for SEO.

Having a main element is just part of having good semantic markup and can possibly help with accessibility (assistive technologies) as well.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.