Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Header tags are inflexible

How to use a header tag without a forced return

9:03 pm on Mar 24, 2009 (gmt 0)

New User

5+ Year Member

joined:Oct 14, 2008
posts: 22
votes: 0

When I use an H1 H2 H3 header tag, it forces a carriage return and I can't put copy after it.

I'm using Expression Web as an editor, so maybe that is a problem.

But if someone could tell me how to use these tags in the middle of a sentence without having a mandatory hard return, that would be great.


10:26 pm on Mar 24, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:Feb 3, 2009
votes: 0

They are for headings, so why are you using them in the middle of a sentence?
10:50 pm on Mar 24, 2009 (gmt 0)

Preferred Member

10+ Year Member

joined:May 29, 2007
votes: 0

w3.org/TR/REC-html40/struct/global.html#h-7.5.3 [w3.org]

Block-level and inline elements

Certain HTML elements that may appear in BODY are said to be "block-level" while others are "inline" (also known as "text level"). The distinction is founded on several notions:<snip/>

htmlhelp.com - HTML 4 Block-Level Elements [htmlhelp.com]

Most HTML 4 elements permitted within the BODY are classified as either block-level elements or inline elements. Block-level elements typically contain inline elements and other block-level elements. When rendered visually, block-level elements usually begin on a new line.

The following are defined as block-level elements in HTML 4:<snip/>

HTML tags are for content

Use CSS to control the presentation - for example, to over-ride the defaults

By 'default', header tags are 'block-level'

With CSS, you can over-ride the defaults (from 'block' to 'inline') but I strongly recommend caution and suggest that you do some homework; plan your desired 'look and feel' first and implement it only when you're confident you have devised the most effective and efficient method to maintain it

Like oluoch above, I wonder why you want to use header tags in the middle of a sentence - there's more than one way to skin a cat...

If you want/need extra emphasis on certain words, apply a 'semantic' class name to an enveloping span


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members