The line break HTML tag: br

The line break HTML tag: br lets you start your text on a new line, but without starting a new paragraph. The line break tag is a self-closing HTML tag.

Because there is no content to display on-screen, the line break tag is a single tag.

In this example, we’ve used both the <p> tag, and the <br> tag, see code below:

 

<p>To force<br> line breaks<br> in a text,<br> use the br<br> element.</p>

The above HTML code displays the following output:

To force
line breaks
in a text,
use the br
element.

A SELF-CLOSING HTML tag is an opening and closing tag rolled into one.

Only some kinds of tag are used this way.

You can spot a self-closing tag because the forward slash / comes at the end of the tag, rather than at the beginning as it does for a regular closing tag.

Definition and Usage

The <br> tag inserts a single line break.

The <br> tag is useful for writing addresses or poems.

The <br> tag is an empty tag which means that it has no end tag.

Tips and Notes on The line break HTML tag: br

Tip: The < br > tag is useful for writing addresses or poems.

Note: Use the < br > tag to enter line breaks, not to separate paragraphs.

Learn more about the line break HTML tag: br on w3Schools.com


Related Videos:

 


Related Posts:

The HTML paragraph tag: p and /p

Alignment CSS properties

More than one CSS class

Tips and Tricks for WRITING JAVASCRIPT code

Building a web page with HTML tags

CODING WEB PAGES (HTML, CSS, & JavaScript)

CODING WITH CSS: The style attribute

Build to-do list web-app with code

Using more than one CSS property

Learn RE – Regular Expressions in Python

Why JavaScript developers are choosing TypeScript

What is the Python Software Foundation?

B0r0nt0K Ransomware Wants $75,000 Ransom, Infects Linux Servers

GoogleBot Runs Latest Chrome – This Is Big News

College graduates not learning a programming language that’s vital for top tech jobs.

Connected through code, Choose Your Platform!

About the Author: Bernard Aybout

In the land of bytes and bits, a father of three sits, With a heart for tech and coding kits, in IT he never quits. At Magna's door, he took his stance, in Canada's wide expanse, At Karmax Heavy Stamping - Cosma's dance, he gave his career a chance. With a passion deep for teaching code, to the young minds he showed, The path where digital seeds are sowed, in critical thinking mode. But alas, not all was bright and fair, at Magna's lair, oh despair, Harassment, intimidation, a chilling air, made the workplace hard to bear. Management's maze and morale's dip, made our hero's spirit flip, In a demoralizing grip, his well-being began to slip. So he bid adieu to Magna's scene, from the division not so serene, Yet in tech, his interest keen, continues to inspire and convene.