0 votes
1 view
in Web Technology by (22.4k points)

output:

hello 

How are you

code:

<p>hello <br> How are you </p>

How to achieve same output without <br>?

1 Answer

0 votes
by (40.3k points)

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;

}

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...