homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Gold Sponsor 2015!
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Header tags are inflexible
How to use a header tag without a forced return

5+ Year Member

Msg#: 3877911 posted 9:03 pm on Mar 24, 2009 (gmt 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.




5+ Year Member

Msg#: 3877911 posted 10:26 pm on Mar 24, 2009 (gmt 0)

They are for headings, so why are you using them in the middle of a sentence?


5+ Year Member

Msg#: 3877911 posted 10:50 pm on Mar 24, 2009 (gmt 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

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved