HTML Paragraphs

HTML Tutorial

HTML Forms

HTML Graphics

HTML Media

HTML API

Html Paragraphs

The HTML <p> element defines a paragraph.

A paragraph is always started on a new line, and White space (a margin) before and after a paragraph is automatically added by the browsers.

Example

				
					<!DOCTYPE html>
<html>
<body>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>

				
			

Output:

This is a paragraph.

This is another paragraph.

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.

The number of lines in a paragraph depends on the size of the browser window. If you resize the browser window, the number of lines in this paragraph will change.

HTML Horizontal Rules

The tag is used for the thematic break in an HTML page and is most often displayed as a horizontal rule.

The element separates content (or define a change) in an HTML page:

				
					<!DOCTYPE html>
<html>
<body>
<h1>This is heading 1</h1>
<p>This is some text.</p>
<hr>

<h2>This is heading 2</h2>
<p>This is some other text.</p>
<hr>

<h2>This is heading 2</h2>
<p>This is some other text.</p>
</body>
</html>

				
			

Output:

paragraph in html

Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in /home/u212091429/domains/mydevhelp.com/public_html/wp-includes/functions.php on line 5420

Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in /home/u212091429/domains/mydevhelp.com/public_html/wp-includes/functions.php on line 5420