HTML: A Guide to Hard-Coding

 
   

Starting your first page

The Body

Paragraphs

Headings

Images

Fonts

More Fonts

Line Breaks

Links

Colors

Backgrounds

Horizontal Lines

Mailto

Basic Tables

Advanced Tables

Putting your page Online

Frames

Forms

The Head

JavaScript Drop-Down Menu

Cascading Style Sheets

Basic HTML tags

HTML Home

 

 

Dreamweaver Tutorial

Adobe Acrobat

Faculty Resource Center

 

Susan's Homepage

 

Line Breaks <BR>

Line breaks are one of the simplest, yet most useful elements of HTML programing. However, one of the most confusing aspects of a line break is the difference between it and a paragraph <p>.

When you use a <p> tag, the browser will add a line before and after a paragraph. This may be what you want, but it may also negatively affect your design.

A <br> tag tells the browser to go to the next available line, usually just the next line. There are occasions where you may want to use two <br> tags in succession.

The code is very easy: you simply put in <br> when you want a break.

There is no closing tag, and there are no attributes to the <br> tag.

Save and reload in the browser.

 

Go on to the next page.