htmlHow to set bold: 1. Use the "" tag; syntax "bold text"; 2. Use the "" tag , the syntax is "bold text"; 3. Add the "font-weight:bold;" style to the text element.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
htmlSet bold
1. Use the "" tag
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> 正常文本<br><br> <b>粗体文本</b> </body> </html>
2. Use the "" tag
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> 正常文本<br><br> <strong>粗体文本</strong> </body> </html>
##3. Use the style attribute Add the "font-weight:bold;" style to the text element
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> 正常文本<br><br> <span style="font-weight: bold;">粗体文本</span> </body> </html>
html video tutorial"
The above is the detailed content of How to set bold font in html. For more information, please follow other related articles on the PHP Chinese website!