Hi all, first post here.

I was wondering if anyone knows how to format H1 headlines (titles of blog posts) when they are long.

The problem is, if the headline goes onto two lines, it appears all scrunched up and squished.

I could jsut make them all h2 tags instead, but I think I need at least one h1 tag for SEO purposes, per post, and it's probably best to have this as my headline of my post, right?

So, the question is: Is there any way of having a long title (h1) display better?

Recommended Answers

I would not recommend using H2 just for the default formatting. Apply a style to the H1 elements. The best approach is adding the style in your external style sheet.

For example,

h1 {font-size:1em;} 

Substitute 1 for the value of your choice that best suits your pages.

Jump to Post

All 2 Replies

Change the font size and spacing in the CSS style sheet this will allow you to keep your H1 without you having to change it to a H2.

I would not recommend using H2 just for the default formatting. Apply a style to the H1 elements. The best approach is adding the style in your external style sheet.

For example,

h1 {font-size:1em;} 

Substitute 1 for the value of your choice that best suits your pages.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.