How do I make text bold in HTML?

后端 未结 10 1278
时光说笑
时光说笑 2020-12-23 08:44

I\'m trying to make some text bold using HTML, but I\'m struggling to get it to work.

Here\'s what I\'m trying:

Some text th         


        
10条回答
  •  無奈伤痛
    2020-12-23 09:13

    The Markup Way:

    I'm Bold! and I'm Bold Too!
    

    The Styling Way:

    .bold {
      font-weight:bold;
    }
    
    I'm Bold!
    

    From: http://www.december.com/html/x1/

    This element encloses text which should be rendered by the browser as boldface. Because the meaning of the B element defines the appearance of the content it encloses, this element is considered a "physical" markup element. As such, it doesn't convey the meaning of a semantic markup element such as strong.

    Description This element brackets text which should be strongly emphasized. Stronger than the em element.

提交回复
热议问题