Use block-level elements to break the line without using <br> tag. There are many ways to break the line without using <br> tag.
The used properties are listed below:
- white-space: pre; It is used to make elements acts like <pre> tag.
- display: block; It sets the display property of elements to block.
Example 1: This example uses white-space to pre to break the line.
Example 2: This example uses display property to break the line.
- How to insert line break before an element using CSS?
- What is the difference between “word-break: break-all” versus “word-wrap: break-word” in CSS ?
- How to make a vertical line using HTML ?
- CSS | word-break Property
- CSS | page-break-after Property
- CSS | box decoration break Property
- Difference between break and continue in PHP
- How to break an outer loop with PHP ?
- CSS page-break-before Property
- PHP break (Single and Nested Loops)
- Tips for restarting career after a break
- break command in Linux with examples
- How to prevent column break within an element?
- CSS | page-break-inside Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.