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
1 answer

IE cutting my headings

url: http://carloshermoso.com/ IE is cutting the heading in my site. Only IE. Even if you change the font size. Any solutions? #header { font-weight:700; margin:0 auto; max-width:980px; padding:25px 0 25px 0; text-shadow:1px 1px 1px #000; width:80%;…
carherlo
  • 45
  • 2
  • 6
0
votes
4 answers

How to make a h3 tag occupy less space within a div?

Here is the HTML code:

Test

Test

k4kuz0
  • 1,045
  • 1
  • 10
  • 24
0
votes
0 answers

Print Styles - Can't Change Heading Size

I can't change h2's font size for printing, even if I remove the external text style sheet. I have tried everything I can think of, but h2's font size remains fixed at about 16 points (everything else works OK, though). What am I doing wrong?…
0
votes
3 answers

Is a good practice put a canvas into a H1, H2 (..etc) heading for HTML5 semantic?

If i am looking for good HTML5 semantic practices, and a optimized code for CEO. Put a canvas in heading, can give poor results? I mean, this:

Main Title

... some content... …
yukatta
  • 505
  • 2
  • 7
  • 16
0
votes
5 answers

How do I apply padding or a margin to this heading displayed as a table-cell?

I've adapted an example for a header with lines on the side (found here, more specifically: here). It works pretty well, but what I'm unable to do is apply some padding to either side of the text, and have the lines on the side stretch to hug either…
user1694077
0
votes
1 answer

Any way to incorporate two different fonts in a heading (e.g.,

,

, etc.)?

So, on my blog, I am often using both English words and Hebrew, Arabic, and Greek words in headings. I would like the English words to be a particular font (e.g., Calibri), and the Hebrew words to be a particular font (e.g., SBL Hebrew), and the…
user2005298

0
votes
4 answers

css heading vertical space

I'm trying to use CSS/margin-top to add some extra vertical space before H3 headings, but it has absolutely no effect. Any suggestions will be appreciated. The relevant CSS is the following: h3{ color:blue; text-align:left; font-size:26px; …
Phillip M. Feldman
  • 468
  • 1
  • 7
  • 17
0
votes
2 answers

styling different iterations of headings

Hey just a quick question, I have used the h1 and h2 tags and styled them twice under #feed h1, h2{} and #contact-footer h1, h2{} but the properties from each div are being mixed up, can you only style headings once? heres the css(the relevant…
user2072017
  • 91
  • 1
  • 4
  • 12
0
votes
3 answers

Multi line heading with background color the width of text

I have a heading which is likely to span over two lines, i'd like the heading to have a background color but for it to only span the width of the text on the line, like…
0
votes
1 answer

Joomla Headings - Make the first word in different color

Im currently trying to make the first word of any/all my Joomla Articles/Categories/Blog headings have one color and then the rest of the sentence be the site default. I have found the code below that does change the color but it only works if the…
0
votes
1 answer

Position heading at bottom of window + full width

I have a Heading 1(#banner h1.index_banner_text) that needs to always be positioned 20px from the bottom of the page and 570px from the left of the page. If the window is resized, I would like the heading to stack naturally but always remain 20px…
0
votes
4 answers

Adding background to h1, only on apty space

I'm trying to achieve this kind of effect Basically, I want the background for my heading to span across the available space, but not under the text. The problem is that this needs to be dynamic as the text can be in multiple languages. I can't…
NemoPS
  • 409
  • 2
  • 13
0
votes
1 answer

Why does my heading disappear in IE7 and change color in FF?

This is probably an easy fix, but I'm stumped. Here's the URL: http://urgent.mchenry.edu First off, underneath the urgent.mchenry.edu text box in the header is an h2 w/ class="caps" and text that says "Official McHenry County College Update".…
Jesse
  • 299
  • 3
  • 7
  • 14
0
votes
1 answer

Bootstrap Mobile View Not Loading

How come when I load my app via a mobile device the h1 is cut off - I am using the Twitter BS: HTML:
Jess McKenzie
  • 8,345
  • 27
  • 100
  • 170
0
votes
2 answers

Two anchor tags inside a single heading

I am working on a new blog's design and markup right now and I have found a place where I'm tempted to nest two anchor tags within a single heading tag:

Popular|Recent

Which looks like this: (source: autochemky.com) The…
person0
  • 1,278
  • 2
  • 15
  • 20