HTML Paragraphs and Breaks
In this Tutiongo tutorial you will learn how to create paragraphs and Line Breaks in HTML.
Creating paragraphs in a web pages
So, the paragraph element is used for publish text on the web pages.
Paragraphs are defined as a <p> tag. Paragraph tag is a very basic and important tag you will need to publish your text on the web pages. Here's an Some examples:
HTML Paragraphs Example:
You can Directly Copy paste This Code Into drag Coding
Note: closing tag paragraph Element is very important
In HTML 5 and earlier versions, it was enough to initiate a new paragraph using your opening tag. Most browsers will display the HTML correctly even if you forget the end tag element. For example:
Error closing tag missing
Missing HTML closing Tag
This is the correct way to Write HTML Paragraph Code
HTML Paragraph Example
Creating Line Breaks
The <br> tag is help you to insert a line break on your web pages.
Since the <br> is an empty element, so there is no need to use closing </br> tag.
HTML Line Breaks Example:
Creating Horizontal Rules In Web pages
You can use the <hr> tag to lines to visually separate content or paragraph on a web page. Like <br>, the <hr> tag is also an empty tag. Here's an example: