Learn HTML by Building a Cat Photo App - Step 5

Tell us what’s happening:
Describe your issue in detail here.
can you tell me how does the main tag help with seo? Thank you.

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

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

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

Link to the challenge:

It’s best not to open duplicate posts for the same issue.

The instructions are asking you to start main after the h1 element. You are starting it before the h1 element.

1 Like

Thank you so much , but how does the main tag help with SEO(because in step 5, they said"These elements make your HTML easier to read and help with Search Engine Optimization (SEO) and accessibility.")

That’s a good question. I’m not an expert in SEO, so I don’t know off the top of my head. Maybe someone else will chime in.

The main tag is very important for accessibility though, primarily for people who use screen readers to listen to your page. So you should always wrap the primary content of your page in main tags.

1 Like

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