Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

HTML Paragraphs Tags | Pagargraph Tags in HTML

HTML Paragraphs


The HTML

Element Defines a paragraph:



Example

MY First paragraph.


MY Second paragraph.


MY Thrid paragraph.



HTML Paragraphs Tags | Pagargraph Tags in HTML


HTML Display
You cannot be sure how HTML will be displayed.

Large or small screens, and resized windows will create different results.

With HTML, you cannot change the output by adding extra spaces or extra lines in your HTML code.

The browser will remove any extra spaces and extra lines when the page is displayed:

Example

This paragraph
contains a lot of lines
in the source code,
but the browser 
ignores it.



This paragraph
contains         a lot of spaces
in the source         code,
but the        browser 
ignores it.


Don't Forget the End Tag
Most browsers will display HTML correctly even if you forget the end tag:

Example

This is a paragraph.


This is another paragraph.



HTML Line Breaks
The HTML
element defines a line break.


Use
if you want a line break (a new line) without starting a new paragraph:


Example

This is
a paragraph
with line breaks.



The Poem Problem
This poem will display on a single line:

Example

  My Bonnie lies over the ocean.

  My Bonnie lies over the sea.

  My Bonnie lies over the ocean.

  Oh, bring back my Bonnie to me.


The HTML
 Element

The HTML
 element defines preformatted text.


The text inside a
 element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks: 
 Read More.....




This post first appeared on The Code Developer, please read the originial post: here

Share the post

HTML Paragraphs Tags | Pagargraph Tags in HTML

×

Subscribe to The Code Developer

Get updates delivered right to your inbox!

Thank you for your subscription

×