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

Joomla H1/H2 Tags

Can anyone explain to me please why the heading tag for title is H2 not H1 in Joomla 3.0? And also does anyone know how to change this? Considering there are no H1 tags, but once you put sub headings in using H2 that is surely no good for the old…
tim.baker
  • 3,109
  • 6
  • 27
  • 51
0
votes
1 answer

E-mail newsletters: how do I keep line height for headers consistent?

I have been navigating the briar patch that is e-mail newsletter design and coding. One problem keeps on coming up: the line-height of my headings is inconsistent between different e-mail clients. One set gives a lot of space to a heading, among…
Bakabaka
  • 1,505
  • 1
  • 13
  • 21
0
votes
4 answers

CSS heading 1 background image

I have this image here I would like to have as my background image for h1 http://inauguralseason.com/wp-content/themes/twentyeleven/images/wehavelaunched.png My problem is how do I get the part to the left to appear? Here is my current CSS…
user1269625
  • 3,121
  • 26
  • 79
  • 111
0
votes
1 answer

Automatic id on tags

Hello i'm building a side with a local scroller. Is there any way i can take the value of my tag and use that as id.

test

so it would be like this

test

I'm running wordpress.
MyRevenge
  • 117
  • 1
  • 14
0
votes
3 answers

How to display a h1 element with an inline element next to it and a p element below it?

I asked a question earlier about the best way to put edit/delete links inline with a h1 element. I was able to achieve this with the answers given, but I now have additional requirements where I need to display a paragraph below the h1 and…
XåpplI'-I0llwlg'I -
  • 21,649
  • 28
  • 102
  • 151
0
votes
5 answers

headings display block a line with text

here my website http://maximearchambault.com/index.php/contact/ My question is regarding one of my headings. I use it for the main title of the page, contact / info My problem is the block is not a line with the text. I will like that the text…
0
votes
1 answer

Headings Element in Internet Explorer

I have a website that running OK at Mozilla Firefox and Google Chrome. But in Internet Explorer, it won't show the title of paragraph. I use Headings Elements like H1, H2 and so on. But in Internet Explorer it won't show up. How it could be? h2…
canyon
  • 1
  • 2
0
votes
1 answer

Structure a site's contents with the section elements and headings

I already know there are numerous threads outside discussing the use of section elements - I already read a lot of them and so far I came to the following conclusion: A
element should be used to wrap content which could be stored as an…
Peter
  • 946
  • 9
  • 23
-1
votes
2 answers

How to remove Header and footer from HTML page when printing in browser using CSS

I am trying to remove header and footer from first page only in a html and the header and footer will be repeated on the next pages while I am trying to print, I found a way to remove the header but I cannot remove the footer using the same…
Omer
  • 11
  • 1
-1
votes
3 answers

What is the difference between
and

in html

What is the difference between and in html, I've been recently learning it and someone asked me this question and I'm unable to conclude the perfect answer for it h1 and header can both perform the same tasks hence what's the diff?

-1
votes
1 answer

How do i make my blockquote responsive to different screen sizes?

I have added a blockquote to the header of my page and am trying to make it responsive so that the text adjusts to the screen size. I would like the text to stay centered, and change size according to the browser. I have tried changing the font size…
RianneJ
  • 143
  • 1
  • 11
-1
votes
3 answers

h1 & p1 wont display inline

I've been searching for a while now to why my heading and paragraph will not display inline. I have tried putting them in a div to display inline. I have also tried without the div. here is a screen shot of what the website looks like right now…
LiaamB
  • 7
  • 1
-1
votes
3 answers

Separate headline markup order from visual and conceptual weight?

These 2 images illustrate my markup + the visual weight that clearly emphasizes the most important headline of the page. Sometimes the big headline has a little pre-headline .. or.. subheadline above it? That's the design; my job is bringing that…
katerlouis
  • 536
  • 6
  • 16
-1
votes
1 answer

CSS styling with JavaScript issues

So i'm trying to change the margin of my h1 heading in the following snippet of code, using JavaScript for accuracy and because CSS does not support the auto property for the h1 margin. To do this, I am adding a margin using the document. object. I…
-1
votes
1 answer

Should I wrap a heading with a link or not?

I realise that both wrapping a heading with a link, and putting a link inside the heading both work, but is there a convention or actual reason for doing one over the other. So for example, is

A Header

acceptable, or should…
worldofjr
  • 3,868
  • 8
  • 37
  • 49
1 2 3
16
17