Home > Article > Web Front-end > How to bold text in CSS
There are two ways to bold text in CSS, one is to use HTML bold tags, and the other is to use CSS to bold. Today I will introduce to you two different bolding methods and the differences between the two methods
font-weightUsing syntax: div{font-weight:bold} represents setting the bold style for the text in the DIV box. Extended reading:1.css font-weight2.Remove bolding from cssHTML bold tagHTML There are two bold tags, one is a4b561c25d9afb9ac8dc4d70affff4190d36329ec37a2cc24d42c7229b69747a the other is 8e99a69fbe029cd4e2b854e244eab143128dba7a3a77be0113eb0bea6ea0a5d0 Grammar:
1、<b>我被b标签加粗</b> 2、<strong>我被strong标签加粗</strong>Extended reading:
1. The difference between b and strong bold 2. html b (b bold) 3. html strong (strong bold) css bold The difference between Css and How to choose css bold or label boldWhether it is div css bold or b and strong tags bold, sometimes in order to save html tags and make the HTML source code more concise we Just set the css bolding method to bold the text font. But sometimes we need the B or strong tag to be bold. In order to facilitate SEO, we can choose the html tag to bold. There are so many ways and differences in how to bold text in CSS. Friends in need can save it. Please also continue to pay attention to other
updates on this site.
Related reading:The above is the detailed content of How to bold text in CSS. For more information, please follow other related articles on the PHP Chinese website!