Double line HTML tag

I am </br></br> website and I am doing a lot </br></br> to create a new paragraph similar to this ...

 Paragraph 1 Paragraph 2 

I already created the <tab> in the paragraph paragraphs, but I wonder if I can create the <break> and insert two new lines to save some time.

Can someone point me in the right direction?

Thanks!

-Henry

+4
source share
3 answers

If <p> not needed semantically (?), You can change the values โ€‹โ€‹of <br/> defaut:

 br { margin:2.5em 0;/* FF for instance */ line-height:5em;/* chrome for instance */ } 

http://codepen.io/anon/pen/cJwDhI <= here it is 5em to make it obvious :)

+6
source

Use the <pre> . It retains formatting internally.

 <pre> My first line. My second line after two line breaks. </pre> 
+4
source

you can use the p tag: http://www.w3.org/TR/html-markup/p.html

 <p>Paragraph 1</p> <p>Paragraph 2</p> 

as a side note: you really have to learn semantic html

+3
source

Source: https://habr.com/ru/post/1487534/


All Articles