

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to make text bold in HTML?
To make text bold in HTML, use the <b>…</b> tag or <strong>…</strong> tag. Both the tags have the same functioning, but <strong> tag adds semantic strong importance to the text. The <b> tag is a physical markup element, but do not add semantic importance.
Just keep in mind that you can get the same result in HTML with CSS font-weight property.
Example
You can try to run the following code to make text bold in HTML using <strong>…</strong> tag
<!DOCTYPE html> <html> <head> <title>HTML text bold</title> </head> <body> <h2>Our Products</h2> <p>Developed 10 <strong>Android</strong> apps till now.</p> </body> </html>
Example
You can try to run the following code to make text bold in HTML using font-weight property
<!DOCTYPE html> <html> <head> <title>HTML text bold</title> </head> <body> <h1>Tutorialspoint</h1> <p style="font-weight: bold;">Simply Easy Learning</p> </body> </html>
- Related Questions & Answers
- How to make a text bold and italic in JavaFX?
- How do we add bold text in HTML?
- How to make text bold, italic and underline using jQuery
- How to make a specific text on TextView bold in Android?
- How to make a specific text on TextView bold in Android using Kotlin?
- How to make text italic in HTML?
- How to add bold annotated text in Matplotlib?
- How to create a bold text using JavaScript?
- How to use Bold & Non-Bold Text In A Single UILabel in iOS/iPhone?
- HTML DOM Bold object
- How to display a bold text inside the JTextArea in Java?
- How to make a plot title partially bold using ggplot2 in R?
- Enclose a text to make it blink with HTML.
- How to make Marquee text in Android?
- How to center text in HTML?
Advertisements