Myths and Facts of h1 Tags on Web Pages
Posted: April 25, 2009 at 05:34:59 by Dani Iswara. Words count: 795.
Last updated: May 4, 2009 at 10:07:49.
<title>?<h1>?
These opinions might be a myth
There are no evidence yet (if any, show me, please!), so these opinions are myth only.h1 tags should:
- be only one
h1per web document. - contains phrases of the words in
<title>. - be the first header tag in the source code.
- be unique (to avoid internal duplicate content?).
- contains the page target keywords.
- not used as a site-wide elements on sidebar section.
Those opinions might be a fact
Based on semantic and accessibility point of view, some of the above opinions might be a fact (as a theory/best practices):- Web page as a single hierarchy, should be only have one
h1level heading. Represents the topic of the page.Semantically, books, papers, have only one top-level heading. DOM (Document Object Model) have a logical structure and it contains only one root element.
- When screen reader users tabbing form heading to heading (including navigation and sidebar sections), in a logical order (
h1,h2, ...,h6; properly nested; doesn’t skip any levels), the web pages would be more scannable.Therefore, we can see many guru's websites of web standards, semantic, and accessibility uses
h2tags for their navigation and sidebar menus.
Try the test, run FAE (Functional Accessibility Evaluator). Who will get the benefit from having only one
titleelement- The
titleelement in the head element should contain both the title of the website and title of the web resource. Thetitleelement is typically rendered in the title bar at the top of the graphical window of most graphical browsers such as Internet Explorer, Opera, Mozilla and Firefox.h1element- The
h1element should contain the title for the web resource and may contain the title of the website. The page should contain at least one and no more than twoh1elements.
h1 tag?
- Semantic Data Extractor and researchers.
- Screen readers, voice browsers (aural agents) users.
So, what is Google says?
On Google.com, using keywords bali web design, these websites have something different:- chazzuka.com, has two
h1tags on their homepage. One inaltattribute (note:altis not a tag), the other in a pure text (Figure 1 & 2). - baliwebdesign.net, has no
h1tag. The top level heading ish2(Figure 3). - vierstra.com, has one
h1tag in<table>element. - dstudiobali.com, has one
h1tag. - limbai.com has three
h1tags (Figure 5).
Search Engine Optimization (SEO) perspective
People call "the perfect markup" as a Classic/Static/On-page SEO. In SEO point of view, for most publishers, maybe traffic is much more important to convert something. Gives what visitors want and like. Perhaps, not for all visitors. At least, for potential readers or users, on targeted keywords. You don't have to worry abouth1 tags. Those search results are the fact. Any other evidence, please!
You may see SEO conflicts.
Conclusions
I am not an expert in SEO. As a stupid guy, I'll say, no matter for SEO.h1 tag is useful for users. It's all behind the meaning (semantic) of the code. How to use it? Learn from the best practices. :)
Further reading:
- Use <h1> for top-level heading (from Tips for Webmasters by W3C Quality Assurance).
- The Hard Facts about Heading Structure (on Sitepoint).





Comment by nomercy on May 1, 2009 at 18:27:49
using Firefox 3.0.9 on Linux Mint 6
kenapa ya dari semua penjelasan mengenai hal yang sama hanya di artikel ini yang masuk di otak saya ...
acung jempol deh ....
Comment by Dani Iswara on May 1, 2009 at 20:37:26
using Firefox 3.0.9 on Gentoo
nomercy,
thanks, tapi sebaiknya jangan langsung percaya, karena saya juga hanya pengguna biasa. silakan telusuri tautan-2 tersebut untuk lebih jelasnya. :)
Comment by Hendry on May 1, 2009 at 21:56:54
using Google Chrome 1.0.154.59 on Windows XP
Hanya blogger yang teliti dan memang berpengalaman yang tau bahwa alt itu bukan tag tapi attribute. Salut!
On-page is only one factor to search engine ranking. There is also another factor, named appropriately off-page factor, that is more important.
But because webmasters and bloggers have control over on-page factors, so it is recommended that they optimize it the best as they could.
Thanks for the great posts in this blog. Subscribed to the feed already.
Comment by Dani Iswara on May 2, 2009 at 00:58:34
using Firefox 3.0.9 on Gentoo
Hendry,
thanks, saya juga taunya karena tulisan para master-2 itu :)
sometimes, old and classic techniques are boring (but still accessible until now and later). for most of the publishers, the 'new magics' (whatever off-page) SEO are more interesting. :)
Comment by gdenarayana on May 2, 2009 at 21:09:16
using Firefox 3.0.1 on Windows XP
berarti utk h1 - h6 itu ndak masalah dipasangin di themes yah bli? tapi saya jarang liat ada yang pasang sampai h6, biasanya sampai h4 aja.
terus yang baiknya sampai seberapa? apa tergantung keperluan aja bli (terutama accessibilitas screen reader)?
suksma bli :)
Comment by Dani Iswara on May 2, 2009 at 22:58:37
using Firefox 3.0.10 on Gentoo
gdenarayana,
utk SEO mungkin ngga terlalu ngefek (mungkin juga ini karena penyalahgunaan/overuse tag
h1zaman-2 sebelumnya) :)umumnya dipake h1-h3 aja, lebih dari itu biasanya dianggap membingungkan, kecuali halaman web yg bersifat ilmiah ala jurnal..
Comment by ganda on December 23, 2009 at 09:46:30
using Google Chrome Frame 4.0 on Windows XP
Setelah saya coba FAE nya, halaman index http://gandamanurung.com lulus 100%. Tapi ketika saya mencoba untuk menganalisis halaman single page/post, FAE menyebutkan warning seperti ini.
Ada idea? Solusi? Saya pikir itu bagian navigasi atas, namun entah mengapa bukan bagian itu yang salah? Heading untuk related post kah?
Kemudian ada error lain, bagian comment avatar yang memiliki atribut
altyang kosong. Arh, ini adalah kesalahan kekurangan fungsiget_avatar(), saya berniat untuk mengubahnya kembali agar lebih baik. Untuk error yang pertama, apa yang ada di benak bang Dani?Comment by Dani Iswara on December 23, 2009 at 10:48:28
using Firefox 3.5.6 on SuSE
ganda,
saya pernah membuat status twitter sesuai kondisi hasil FAE itu. Asumsi saya, dari pesan peringatannya, itu memang masalah di navigasi.
Beberapa praktisi menganggap algoritma FAE terkait hal itu tidaklah akurat. Tes WCAG 2.0 versi achecker.ca berbeda dengan FAE. Douglast.com pernah saya tanyakan hal tersebut. Dia memakai rujukan FAE. :)
Comment by ganda on December 23, 2009 at 10:51:53
using Google Chrome Frame 4.0 on Windows XP
Ya, tapi saya tidak mengerti masalah di navigasi yang mana, sebab pada halaman home, semuanya baik-baik saja. Asumsi saat ini mungkin adalah masalah di related post atau mungkin di sociable plugin? anyway, kenapa plugin sociablenya di copot?
Comment by ganda on December 23, 2009 at 10:53:02
using Google Chrome Frame 4.0 on Windows XP
terus kata douglas apa bang? apakah memang algoritma FAE belum sempurna?
Comment by Dani Iswara on December 23, 2009 at 11:29:30
using Firefox 3.5.6 on SuSE
ganda,
keliatan kepanjangan di mobile screen. :) CSS-nya kayaknya mesti ada yang diedit juga kalo mo evaluasi validasi. Mau ngurangin plugin juga sih.
Comment by Dani Iswara on December 23, 2009 at 11:35:29
using Firefox 3.5.6 on SuSE
ganda,
menurut Joe Dolson saat mencoba FAE:
Pendapat aksesibilitas Web menurut Douglas T, poin nomor 8:
Comment by ganda on December 23, 2009 at 11:37:58
using Google Chrome Frame 4.0 on Windows XP
padahal untuk single post, sudah saya include juga css nya. bingung letak salahnya di mana.
Comment by ganda on December 23, 2009 at 11:38:55
using Google Chrome Frame 4.0 on Windows XP
css sudah saya include dari awal home page. masih bingun letak kesalahannya di mana.
Comment by ganda on December 23, 2009 at 11:46:18
using Google Chrome Frame 4.0 on Windows XP
tapi kok di halaman awal katanya valid yah? bingung saya.
Comment by Dani Iswara on December 23, 2009 at 12:23:04
using Firefox 3.5.6 on SuSE
ganda,
setelah upgrade plugin, opsi transparent-nya aktif lagi kan?
Comment by Dani Iswara on December 23, 2009 at 12:33:16
using Firefox 3.5.6 on SuSE
ganda,
iya juga ya. Tapi FAE itu buat HTML kayaknya. Bukan XHTML.
Karena merujuk pada
yang biasanya untuk doctype HTML.