What Is The HTML Paragraphs

HTML Paragraphs a section consistently begins another line, and is normally a square of text.

HTML Paragraphs

You can’t be sure how HTML will be shown.

Gigantic or little screens, and resized windows will make different results.

With HTML, you can’t change the show by adding extra regions or extra lines in your HTML code.

The program will subsequently wipe out any extra regions and lines when the page is shown:

Example

<p>
This paragraph
contains a lot of lines
in the source code,
but the browser
ignores it.
</p>

<p>
This paragraph
contains         a lot of spaces
in the source         code,
but the        browser
ignores it.
</p>

HTML Horizontal Rules

The <hr> tag characterizes a topical break in a HTML page, and is frequently shown as an even standard.

The <hr>component is utilized to isolate content (or characterize an adjustment of) a HTML page:

Example

<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>

The <hr> tag is an unfilled tag, which implies that it has no closure tag.

HTML Line Breaks

The HTML <br> element defines a line break.

Use <br> if you want a line break (a new line) without starting a new paragraph:

Example

<p>This is<br>a paragraph<br>with line breaks.</p>

The
tag is a vacant tag, which implies that it has no closure tag.

The Poem Problem

This sonnet will show on a solitary line:

Gracious, bring back my Bonnie to me.

Example

<p>
  My Bonnie lies over the ocean.

  My Bonnie lies over the sea.

  My Bonnie lies over the ocean.

 Goodness, bring back my Bonnie to me.
</p>

Solution – The HTML <pre> Element

The HTML <pre> element defines preformatted text.

The content inside a component is shown in a fixed-width text style (generally Courier), and it jelly the two spaces and line breaks:

Example

<pre>
  My Bonnie lies over the ocean.

  My Bonnie lies over the sea.

  My Bonnie lies over the ocean.

 Goodness, bring back my Bonnie to me.

</pre>

HTML Tag Reference

Model ‘ label reference contains extra data about HTML components and their properties.

TagDescription
<p>Defines a paragraph
<hr>Defines a thematic change in the content
<br>Inserts a single line break
<pre>Defines pre-formatted text
HTML Paragraphs