Home > other >  Bold text using html
Bold text using html

Time:11-22

I am tring to do some text display bold in web with HTML.

<p>HELLO</p>
<iframe name="sif1" sandbox="allow-forms allow-modals allow-scripts" frameborder="0"></iframe>

My Required output is :- HELLO.

CodePudding user response:

You can bold a text in multiple ways. Way 1:

<strong>This text is bold</strong>

Way 2:

<p>Your username for your new computer is <b>JohnAppleseed</b></p>

Way 3 (Using CSS):

p.thick {
  font-weight: bold;
}

p.thicker {
  font-weight: 900;
}
<p class="thick">This is a paragraph.</p>
<p class="thicker">This is a paragraph.</p>
<iframe name="sif2" sandbox="allow-forms allow-modals allow-scripts" frameborder="0"></iframe>

Resources you can follow to learn more W3School TutorialPoint

CodePudding user response:

strong is the HTML tag to do that. Refer to W3Schools.

<strong>HELLO</strong>
<iframe name="sif3" sandbox="allow-forms allow-modals allow-scripts" frameborder="0"></iframe>

  •  Tags:  
  • html
  • Related