TheWebsEye.com HTML tutorial



HTML TUTORIAL HTML EDITORS HTML BOOKS HTML RESOURCES



HTML Block Elements

In the BODY of a web page, text is formatted by using block level elements. The following elements are most commonly used:

open online HTML editor
Online editor Works only in IE - If you use another browser you can Download Web Page Teacher.

<P> - used to enclose a paragraph and adds a space above and below the text - example.

<BLOCKQUOTE> - used to contain text quoted from another source - and is usually indented to the left and right, as well as the space above and below - similar to a paragraph - example.

<H#> - heading tags - six levels from largest to smallest - example

<DIV> - used as a 'container' for other HTML elements and displays them adds paragraph breaks before and after the contents of the <DIV> element - example.

<CENTER> - Centers text on the page - however you can achieve the same effect by using a align="center" attribute on a DIV or P or SPAN element - example

<ADDRESS> - can be used for the address on a web page and is usually in italics - example