Questions tagged [html-heading]

In HTML, the

,

,...

tags define headings of different levels,

being the highest. Browsers typically apply preset top and bottom margins as well as different font sizes and weights to headings.

The headings elements from <h1> to <h6> represent six levels of element headings, where <h1> is the highest s level and <h6> is the lowest level.

Usage notes

  • Heading information can be used by user agents to construct a table of contents for a document automatically.
  • Avoid using heading elements to resize text. Instead, use the CSS font-size property.
  • Avoid skipping heading levels: always start from <h1>, followed by <h2> and so on.
  • Use only one <h1> per page or view. It should concisely describe the overall purpose of the content.
  • Using more than one <h1> will not result in an error, but is not considered a best practice. It is beneficial for screen reader users, and SEO.
  • While HTML5 allows a <h1> per sectioning element, it is not considered best practice, and may subvert the expectations of how screen reader users navigate.
250 questions
0
votes
3 answers

How can I have a H2 and a HR tag in-line without using bad practice?

so I want to make a HR and a H2 element display on the same line, so that it looks like this: http://gyazo.com/7943d8d8b6d23ebffc80a60c0acc872f But it looks like this: http://gyazo.com/30f80e33d627e7bbedf56565afbd5509 And here is the code: hr…
user4815729
0
votes
3 answers

How to replicate the styling of html heading tags

Can anyone tell me how to replicate the styling of a

tag using CSS?

Steven
  • 3
  • 1
0
votes
2 answers

Styling via inline style works, styling via external style sheet doesn't

I was trying to remove extra margin/padding around the H1 tag. Suggestions from other posts included setting the top/bottom margins of the H1 tag to 0, using a negative margin, and changing the line-height. Nothing worked... So I used Firebug to…
Ken Boone
  • 143
  • 2
  • 9
0
votes
2 answers

How to print "

Heading

" in html

the problem is i want to output "

heading

" without skipping the heading tags.... first page
Sharan Sondhi
  • 87
  • 1
  • 11
0
votes
2 answers

Keeping Static Header Over All Other Elements

I have a header in my index file defined as follows: I manage to get it static…
Filipe Teixeira
  • 3,565
  • 1
  • 25
  • 45
0
votes
2 answers

H1 Element with CSS Hidden property?

In this week I've been studying a lot of heading tags and outlining tactics. Now, i am stuck with a lot of information. Reading the HTML5 Doctor: Document Outline article, i've had no troubles with "Untitled Sections" but, the way you put some…
reidark
  • 870
  • 4
  • 11
  • 22
0
votes
1 answer

Can I change headings when printing values in a while?

I'm working on a social networking site and I want to print the 5 most popular people I follow.The result set is returning 5 most popular people I follow from database. I want the first one to be printed in an h1 heading, the second one in h2 and so…
0
votes
4 answers

Making a tittle between two lines

This is probably a simple question but: How can I make a title using any headling tag but I want the title between to lines like this: HTML :

Staging Server

Illustration :
Alex
  • 879
  • 2
  • 10
  • 20
0
votes
1 answer

Should headings in figure elements not be considered document headings?

Assume we have a page like this:

Heading Example

Here is what a heading (level 2) looks like:

Demo Heading

When…
Ky -
  • 30,724
  • 51
  • 192
  • 308
0
votes
1 answer

How to add h1, h2 and h3 headings to RichText widget?

I work with Impresspages 4 and I want to know how I can add h1,h2 and h3 addings to the RichText Widget? Thanks!
0
votes
1 answer

Can someone explain why a header-element containing a single heading in an article is bad?

This article "Avoiding common HTML5 mistakes" on HTML5Doctor says: If your element only contains a single heading element, leave out the
. According to the article, this is bad practice:

Heading

lampshade
  • 2,470
  • 3
  • 36
  • 74
0
votes
3 answers

What are there guides for using Heading tags?

Instantaneous I'm working on developing a portfolio site. Hereby I strive to be as accurate as possible markup. I'm currently stuck in the use of heading tags. Are there any guidelines on the use of h1, h2, h3 tags etc? I find it difficult to…
Caspert
  • 4,271
  • 15
  • 59
  • 104
0
votes
1 answer

Bootstrap Arabic HTML-headings render garbage in IE10

I am building an Arabic website using bootstrap-3. I am getting everything fine -so far- with no problems except for the html heading e.g.

..

,

..

,

..

,

..

,
..
, and
..
Whenever I add some Arabic…
SULTAN
  • 1,119
  • 4
  • 12
  • 25
0
votes
5 answers

Reset not letting me change H1 size

So this is a strange bug I cant seem to figure out. Im using Meyers reset in my app. But when I edit my main css file to change the h1 font size, it will not change it. But when I put it in the body tag it works. Could anyone explain this to…
Seal
  • 1,060
  • 1
  • 12
  • 31
0
votes
0 answers

untitled section even if there is a heading

I have this little part of markup:

Lorem ipsum

If I run it through an HTML5 outliner, the section is untitled, like this: 1. Untitled Section 1. Lorem…
Robin Cox
  • 1,470
  • 2
  • 16
  • 31