Step-by-Step HTML: A Beginner’s Guide to Web Development
About Lesson

Html Pre Tag:-

<pre>
This is an example of pre-formatted text.
It preserves both spaces and line breaks.
You can use it to display code snippets or other text that should be formatted exactly as it appears.
</pre>

Html Hr Tag:-

<hr> This tag creates a horizontal line across the page, which can be used to visually divide sections of content.

It is often used to separate a heading from the body of the text or to separate two different topics.

<p>
This is an example of pre-formatted text.
It preserves both spaces and line breaks.
<hr>
You can use it to display code snippets or other text that should be formatted exactly as it appears.
</p>

<br> tag:-

The <br> tag inserts a single line break. It is useful for writing addresses or poems.

<p>
This is an example of pre-formatted text.
It preserves both spaces and line breaks.
<br>
You can use it to display code snippets or other text that should be formatted exactly as it appears.
</p>
Join the conversation
0% Complete