schoolwithschool
schoolwithschool

Reputation: 11

How do you make the line break without using a line break or paragraph tag?

With line break:

<p>
  <b><u>
  Procedure
  </u></b>
  <br>
  Procedure will
</p>

Display:

Procedure
Procedure will

Need to look like:

Procedure
Procedure will

without using line break or paragraph tags

Upvotes: 0

Views: 51

Answers (3)

kyun
kyun

Reputation: 10264

b{
  display: block;
}
<p>
  <!--<b><u>Procedure</u></b>-->
  <b>Procedure</b>
  Procedure will
</p>

Upvotes: 2

MKR
MKR

Reputation: 20095

You can use <pre> tag. Something like:

<pre>
<b>Procedure </b>
Procedure will
</pre>

Upvotes: 2

Dekel
Dekel

Reputation: 62556

Not sure why you need this but you can create two blocking elements for that:

div.title {
  font-weight: bold;
}
<div class="title">Procedure</div>
<div>Procedure will</div>

I used css to bold the title, but you can use <b> for that as well.

Upvotes: 2

Related Questions