Welcome Guest! (App Version 5.16)
IntroductionHTML Tutorial What is HTML? My First Program in HTML Doctype Types of Elements Block Elements Inline Elements
Box ModelWhat is Box Model Content in Box Model Padding in Box Model Border in Box Model Margin in Box Model
HTML TagsDiv Tags H1 to H6 Tags Paragraphs Tags Span Tags Bold Tags Italic Tags
HTML UtilitiesAdding Images Adding Hyperlinks Adding Comments Types of Lists Tables Iframes Breaking Lines Horizontal Line
FormsForms in HTML Text-Box Radio Checkbox Select and Option Text Area Button Submit
HTML 5What is new in HTML5 Syntax Changes New Elements & Properties Semantic Tags New Elements New Input Types Graphics Support Canvas SVG Media Support Audio Video Client Side Storage Local Storage Session Storage Indexed DB Web SQL [dep] Cookies API Support Web Worker Web Sockets Service Worker App Cache [dep] SSE Drag & Drop Geolocation
HTML QuizHTML Quiz 1
Paragraphs are one of the most used tags in HTML. Nearly, all the data that is written in text mostly goes inside paragraph tags.
Paragraphs are block level elements and each paragraph automatically goes to a new line. Most often the structure of HTML dom (document object model) is such as, there is a div as wrapper, and it contains one header tag (H1 to H6) followed by few paragraphs.
<p>This is a paragraph.</p>
To understand usage with Header tags, look at this scenario. For example, the header might talk about a nation like USA, while the paragraph would contain text data providing details of its formation, population, and other information.
The example below shows the 3 paragraphs. Note that each of them goes to a new line (as in case of block elements).
<body> <p>This is paragraph 1.</p> <p>This is paragraph 2.</p> <p>This is paragraph 3.</p> </body>
This is paragraph 1.
This is paragraph 2.
This is paragraph 3.