These two tags are basic ways of making line breaks and formatting our paragraphs.
We use the paragraph tag (‹p›) for a full line break between paragraphs and the ‹br› tag for a single line break in a paragraph. Below is how this is formatted in our browser.
My first paragraph.
My second paragraph
with a line break in it.
If you froget to close a ‹p› tag but the browser comes across a second ‹p› the browser will interpret this as a new paragraph.
The ‹br/› tag has a slash before it ends because it is it's own element and does not contain text or images within it, similar to a horizontal rule (‹hr/›).
Web Design Directory: web design, web designer, web page and web site design, development firms, programming and HTML.
© Copyright 2008 All rights reserved.