Prepared by: Anthony Larrain


More on Headings

Example 1

<h1>Heading one</h1> <h2>Heading two</h2> <h3>Heading three</h3> <h4>Heading four</h4> <h5>Heading five</h5> <h6>Heading six</h6>

Browser Display

Heading one

Heading two

Heading three

Heading four

Heading five
Heading six

Notice that each heading has a default style. The style of an element can refer to the font, font size, color, alignment and margins. Each of the heading tags place a blank line before and after the element. They start out big and bold and decrease in size.

The following is an example of a webpage with multiple headings and styles. The headings are circled in red.


Paragraphs

To create paragraphs in HTML use the <p> tag.

Example

<p>Paragraph one</p> <p>Paragraph two</p> <p>Paragraph three</p>

Browser Display

Paragraph one

Paragraph two

Paragraph three

Notice the default style places a line break before and after each paragraph. Each paragraph is left justified.


Line Breaks

To create a line break in HTML use the <br> tag.

A line break starts a new line but not a new paragraph.

Example

<p>One for the money <br> Two for the show <br> Three to get ready <br> go cat go </p>

Browser Display

One for the money
Two for the show
Three to get ready
Go cat go

Notice the line break tag doesn't apply to any text it is simply a command to the browser to jump to the next line.


Empty Elements

@Anthony Larrain 2005 - 2006

Send Questions or Comments to hci201@yahoo.com