SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 HTML Online

Head Elements

Block Elements
  Headers
  Content Containers
  Lists

Inline Elements


Sponsored Links

Block Level Elements

When you markup your content, there are two types of elements that you use: block and inline. Block elements are traditionally thought of as paragraphs or breaks in your content flow. For example, all the header elements (<H1>, <H2>, etc.) are block elements as well as the <P> and <DIV> elements. The HTML 4.0 specification defines block elements as follows:

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:

Content model

Generally, block-level elements may contain inline elements and other block-level elements. Generally, inline elements may contain only data and other inline elements. Inherent in this structural distinction is the idea that block elements create "larger" structures than inline elements.

Formatting

By default, block-level elements are formatted differently than inline elements. Generally, block-level elements begin on new lines, inline elements do not.

See HTML 4.0 Spec

Over the next few pages, you will be able to experiment with the different block elements defined by HTML 4.0.

Block Elements - Creating Headers...

Copyright © 1997-2008 InsideDHTML.com, LLC. All rights reserved.