An HTML line break is a point that defines the end of a current line and the start of a new line. In HTML, the <br> tag is used to create line breaks. In this HTML line breaks article, we will discuss how we can insert the line break in our HTML document with or without the <br> tag.

HTML Line Breaks

The HTML <br> tag defines a line break. Each <br> tag creates a new line. 

newline-line-break

output-line-break

Here's How to Land a Top Software Developer Job

Full Stack Developer - MERN StackExplore Program
Here's How to Land a Top Software Developer Job

How to Break a Line Without Using the <br> Tag in HTML?

You can enter a new line in your web page without using a <br> tag with one of the following alternative methods:

  • Using the <pre> Tag

The <pre> tag displays line breaks, spaces, tabs, etc. exactly as written in the HTML file. It has a fixed font (usually Courier).

pre-tag

output-pre-tag

  • Using Display: Block

This sets the display property of elements to block.

display-block-html-line-break

output-display-block

Get skilled in HTML5 and CSS3 with the Full Stack Java Developer Master's Program. Click to check out the program details! 

Conclusion

This article on HTML line breaks briefly introduced the process of inserting line breaks in an HTML document. Although we covered the basics of HTML line breaks, certification through a highly accredited online learning program is the best way to learn about web development in its entirety. Simplilearn's Full Stack Java Developer is a top choice for those looking to learn more about front-end, middleware, and back-end Java web developer technologies. Students acquire a wide range of developer skills, including how to build applications, test and deploy code, and much more. 

If you're an aspiring web and mobile developer, HTML training will broaden your skills and career opportunities. Do you have any questions for us? Please ask them in the comments section, and we'll have our experts answer them for you.

Our Software Development Courses Duration And Fees

Software Development Course typically range from a few weeks to several months, with fees varying based on program and institution.

Program NameDurationFees
Caltech Coding Bootcamp

Cohort Starts: 15 Apr, 2024

6 Months$ 8,000
Full Stack Java Developer

Cohort Starts: 2 Apr, 2024

6 Months$ 1,449
Automation Test Engineer

Cohort Starts: 3 Apr, 2024

11 Months$ 1,499
Full Stack Developer - MERN Stack

Cohort Starts: 3 Apr, 2024

6 Months$ 1,449