Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Text Paragraphs and Headlines

Myroslav Tkachenko
Myroslav Tkachenko
10,581 Points

What is the proper name for the <h1>-<h6> tags?

W3C says it's "heading", Nick says it's "headline". Which one is preferred? Thanks :)

4 Answers

Wayne Priestley
Wayne Priestley
19,579 Points

Hi Myroslav,

The h1 to h6 tags are indeed called heading. Nick is referring to the use of a h1 tag as a headline.
I can see how that would be confusing for some people.

Heading tags are used for a title, subtitle or any part of text on a page you want to give more emphasis too..

Headline, the most important items of news in a newspaper or a broadcast news bulletin are known as the headlines, so a headline of, SALE NOW ON!! would have a h1 heading tag. A sub header to that could be: Lasts three days, and that could have a h2 heading.

I have no idea if I've made that more or less confusing for you Myroslav, let me know. Hope this helps.

Heading.

Myroslav Tkachenko
Myroslav Tkachenko
10,581 Points

Thanks, Adam and Wayne! I asked this question mostly by intention, because Nick didn't use the term "heading" at all, so I decided to bring some more attention to it.

James Barnett
James Barnett
39,199 Points

That is actually an intentional choice by Nick Pettit

These days the term headline isn't as popular as it once was, but I still use it because the alternative is to call it a* "heading"* as it's referred to in the W3C documentation. There's already a header element and a head element, so the term isn't doing us any favors, especially for beginners.

From: a forum reply by Nick Pettit in a thread last year regarding an earlier HTML course

Simon Parker
Simon Parker
301 Points

i have always referred to them as header tags. although this was changed by HTML 5 including an actual <header> tag

its normally acceptable to refer to them as h1 tags or h4 tags. literally saying the letter "h" then the number following it. most designers and or developers will understand this.