Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Use of h1 tag in HTML5

Posted on 2014-09-06
5
Medium Priority
?
281 Views
Last Modified: 2014-09-11
We are reviewing our use of the h1 tag in HTML5 and up till now we have been in the habit of wrapping the website logo around a h1 tag as follows:

<h1 class="logo">
   <a href="#" title="Website name">Website name</a>
</h1>

Open in new window


However I am concerned that this is not correct from a standards and SEO point of view. Shouldn't the h1 tag represent the main topic of the page in question? Currently we use the h2 tag for this but I would like some guidance as to whether we should change our current approach.

I have tried to find a definitive answer online and have seen this debate: http://www.h1debate.com/
It indicates the majority are in favour of using h1 as the main page title rather than the logo. However I have not seen anything close to officially suggesting one way or the other.

Personally I feel it must not be wrapped around the logo. If you are targetting a page for search engines, the h1 is the most important visible page tag and so should be the main title of the page.
0
Comment
Question by:mike99c
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40307553
H1 should be used to indicate the relevant heading for the most important part of the page
With HTML5 you can have multiple H1 tags
H2 indicates the next most important bit, H3 the next and so on

So no, it's not for an image
0
 
LVL 18

Assisted Solution

by:Steven Harris
Steven Harris earned 668 total points
ID: 40307595
Great articles mike99c.  Of course, both comments above are right (form my perspective).  Wrapping the logo in a h1 is generally a bad idea and can provide more negative consequences than positive ones.  A great quote from the fastcolabs.com article:

Usability: The tags <h1> to <h4> should be used to organize information and orient users. The logo is not actually information or orientation; it’s metadata about the site, not relevant information about the content of the page.
0
 
LVL 58

Accepted Solution

by:
Gary earned 668 total points
ID: 40307608
http://www.h1debate.com/
Pointless discussion by people who don't know

Think of it this way, if every page has your logo in an H1 tag then you are saying every page is the same - you are saying my logo is what is important and nothing else.
Every page should have it's own H1 header to make it unique - which when it comes to search engines is the only thing that counts.
0
 
LVL 53

Assisted Solution

by:COBOLdinosaur
COBOLdinosaur earned 664 total points
ID: 40307962
Let's deal with what W3C says.  They write the standards so I consider them to be the definitive source:
"<h1> is the HTML element for the first-level heading of a document:"

From: http://www.w3.org/QA/Tips/Use_h1_for_Title

As for SEO... Google considers the h1 tag to be the declaration of what the content is about.  Use it any other way or leave it out and you lose weight for the page rank.

You can have more than one h1 tag, but if you do that you reduce the relevance of the text and reduce the weight of the tag.


Cd&
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

664 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question