How to get new line in html. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to get new line in html.

not <br> or <br/> any other method

5th Jun 2018, 5:23 AM
keev23i
keev23i - avatar
6 Answers
+ 11
Why do u want to use other method Gangineni Goutham Choudary ??? Edited : U can use text inside <pre> or block level elements such as <div>, <article>, <section> to create line gaps between them.
5th Jun 2018, 5:35 AM
***
+ 3
I want to know are there any other method.
5th Jun 2018, 5:36 AM
keev23i
keev23i - avatar
+ 3
You can also use CSS to set the display value of an element into block, because block-level elements normally begin in a new line.
5th Jun 2018, 6:02 AM
Ibaadi Jaya
Ibaadi Jaya - avatar
+ 3
You can also use CSS to set the display value of an element into block, because block-level elements normally begin in a new line.
5th Jun 2018, 6:02 AM
Ibaadi Jaya
Ibaadi Jaya - avatar
+ 3
5th Jun 2018, 6:25 AM
keev23i
keev23i - avatar
+ 2
You can use tag <pre> or you can use greater margin in css.
5th Jun 2018, 6:10 AM
Alpen