Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What tag should use title of a news?

Tags:

html

wordpress

I use WordPress to publish news. What tags should I use for the title? h1 or h2? What tag should I use within the main page, and what tag should I use on the news' page?

like image 356
ilhan Avatar asked Jan 15 '23 09:01

ilhan


1 Answers

<h1> tags should be used to mark up the page's most important headline.

Is the title of the news article the most important? Depends.

  • If the page is about the news article, its headline is probably the most important.
  • If you're on a page listing news articles, it's probably not the most important.

In that case, on the main page, where you list these articles, you should probably use a <h2>, or <h3>. On the single article page, it should be the top header.

And no, I don't think the site's logo/slogan should have the <h1> tag on every page. Maybe on the home page only. It's definitely not the most important headline on every page. I mean, when you come and read an article, you read the dang article, not look at the site's logo.

like image 63
Madara's Ghost Avatar answered Jan 22 '23 10:01

Madara's Ghost