Welcome Guest! (App Version 3.1)
IntroductionHTML Tutorial What is HTML? My First Program in HTML HTML Doctype Block Elements Inline Elements
<Head> SectionHead Section HTML CSS HTML Scripts HTML Meta Tags HTML Title HTML Favicon
Box ModelHTML Box Model HTML Content HTML Padding HTML Border HTML Margin
HTML TagsTags in HTML HTML Div HTML Headers HTML Paragraphs HTML Span HTML Images HTML Hyperlinks HTML Comments HTML Lists HTML Tables HTML Iframes HTML New Line HTML Horizontal Line
Fonts and TextsHTML Bold HTML Italics HTML Underline HTML Indent HTML Font-Family HTML Font-Size HTML Font-Weight
FormsHTML Forms HTML Text-Box HTML Radio Buttons HTML Checkbox HTML Select HTML Text Area HTML Button HTML 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
div, Paragraphs are the most used block-level Elements.
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. Though, this is a general dom structure and you may like to make your own pattern of tags, this is the normal coding standard.
<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>
div and paragraph tags are the most common block elements. While setting layout of a web page, these play major role in achieving it.