Back
output:
hello
How are you
code:
<p>hello <br> How are you </p>
How to achieve same output without <br>?
You can use a span tag that you can then display as blocks (just like an <div> actually).
In HTML:
<p><span>hello</span><span>How are you</span></p>
In CSS:
p span { display: block;}
p span
{
display: block;
}
31k questions
32.8k answers
501 comments
693 users