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)

5+ Year Member

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)

5+ Year Member

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)

5+ Year Member

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


Featured Threads

Hot Threads This Week

Hot Threads This Month