You are on page 1of 2

8/2/13

Related Searches: AJAX Applications W eb Design Templates CSS Code Free HTML Tutorial HTML Basic Logo Design Services Free JavaScript Codes HTML Code W eb Design Services
HTML HOME HTML Introduction HTML Editors HTML Basic HTML Elements HTML Attributes HTML Headings HTML Paragraphs HTML Formatting HTML Links HTML Head HTML CSS HTML Images HTML Tables HTML Lists HTML Blocks HTML Layout HTML Forms HTML Iframes HTML Colors HTML Colornames HTML Colorvalues HTML JavaScript HTML Entities HTML URL Encode HTML Quick List HTML Summary HTML XHTML Try it yourself
HOME HTML C SS JAVASC RIPT JQUERY XML

HTML Paragraphs

Search w3schools.c Select Language ASP.NET PHP SQL MORE...


R EFER ENC ES | EXAMPLES

New Upcoming Projects 1/2/3/4 BHK Flats/Apts in ur Budge t Se arch by Locality,Price ,Am e nitie s. www.99acre s.com /Ne w_Proje cts Class 1 to Class 12 Le ssons, Anim ations, Vide os & m ore Math, EVS, Scie nce , English, SST www.Me ritNation.com Download DocBook Editor Ide al tool for le arning DocBook Spe cial discount for Acade m ic use www.ox yge nx m l.com

HTML Paragraphs
Previous
HTML documents are divided into paragraphs.

Next Chapter

HTML Paragraphs
Paragraphs are defined with the <p> tag.

Example
< p > T h i si sap a r a g r a p h < / p > < p > T h i si sa n o t h e rp a r a g r a p h < / p >
Try it yourself Note: Browsers automatically add an empty line before and after a paragraph.

Don't Forget the End Tag


Most browsers will display HTML correctly even if you forget the end tag:

Example
< p > T h i si sap a r a g r a p h < p > T h i si sa n o t h e rp a r a g r a p h

The example above will work in most browsers, but don't rely on it. Forgetting the end tag can produce unexpected results or errors. Note: Future version of HTML will not allow you to skip end tags.

HTML5 News
HTML5 Intro HTML5 New Elements HTML5 Canvas HTML5 SVG HTML5 Drag/Drop HTML5 Geolocation HTML5 Video HTML5 Audio HTML5 Input Types HTML5 Form Elements HTML5 Form Attributes HTML5 Semantic HTML5 Web Storage HTML5 App Cache HTML5 Web Workers HTML5 SSE

HTML Line Breaks


Use the <br> tag if you want a line break (a new line) without starting a new paragraph:

Example
< p > T h i si s < b r > ap a r a < b r > g r a p hw i t hl i n eb r e a k s < / p >
Try it yourself The <br> element is an empty HTML element. It has no end tag.

HTML Output - Useful Tips


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 extra spaces and extra lines when the page is displayed. Any number of lines count as one line, and any number of spaces count as one space. Try it yourself (The example demonstrates some HTML formatting problems)

HTML Media
HTML Media HTML Object HTML Audio HTML Video HTML YouTube

Examples from this page


HTML paragraphs How HTML paragraphs are displayed in a browser. Line breaks The use of line breaks in an HTML document. Poem problems Some problems with HTML formatting.

HTML Examples
HTML Examples HTML Quiz HTML5 Quiz HTML Certificate HTML5 Certificate

HTML References
HTML Tag List HTML Attributes

More Examples
More paragraphs

w3schools.com/html/html_paragraphs.asp

1/2

8/2/13
HTML Events HTML Canvas HTML Audio/Video HTML Doctypes HTML Colornames HTML Colorpicker HTML Colormixer HTML Character Sets HTML ASCII HTML ISO-8859-1 HTML Symbols HTML URL Encode HTML Lang Codes HTTP Messages HTTP Methods Keyboard Shortcuts <br>

HTML Paragraphs
The default behaviors of paragraphs.

HTML Tag Reference


W3Schools' tag reference contains additional information about HTML elements and their attributes. Tag <p> Description Defines a paragraph Inserts a single line break

Previous

Next Chapter

W3Schools' Online Certification


The perfect solution for professionals who need to balance work, family, and career building. More than 10 000 certificates already issued!

Get Your Certificate


The HTML Certificate documents your knowledge of HTML. The HTML5 Certificate documents your knowledge of advanced HTML5. The CSS Certificate documents your knowledge of advanced CSS. The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM. The jQuery Certificate documents your knowledge of jQuery. The XML Certificate documents your knowledge of XML, XML DOM and XSLT. The ASP Certificate documents your knowledge of ASP, SQL, and ADO. The PHP Certificate documents your knowledge of PHP and SQL (MySQL).

Top 10 Tutorials
HTML Tutorial HTML5 Tutorial C SS Tutorial C SS3 Tutorial JavaScript Tutorial jQuery Tutorial SQL Tutorial PHP Tutorial ASP.NET Tutorial XML Tutorial

Top 10 References
HTML/HTML5 Reference C SS 1,2,3 Reference C SS 3 Browser Support JavaScript HTML DOM XML DOM PHP Reference jQuery Reference ASP.NET Reference HTML C olors

Examples
HTML Examples C SS Examples XML Examples JavaScript Examples HTML DOM Examples XML DOM Examples AJAX Examples ASP.NET Examples Razor Examples ASP Examples SVG Examples

Quizzes
HTML Quiz HTML5 Quiz XHTML Quiz C SS Quiz JavaScript Quiz jQuery Quiz XML Quiz ASP Quiz PHP Quiz SQL Quiz

Color Picke

Statistics

Browser Stat Browser OS Browser Disp

RE P O RT E RRO R

HO ME

TO P

P RI N T

FO RU M

A BO U T

W3Schools is optimized for learning, testing, and training. Examples might be simplified to improve reading and basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use and privacy policy. C opyright 1999-2013 by Refsnes Data. All Rights Reserved.

w3schools.com/html/html_paragraphs.asp

2/2

You might also like