Is there any attribute for bold and italic text? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is there any attribute for bold and italic text?

If we can use <b> for bold and <i> italic and any attribute type and value for this?

5th Apr 2017, 9:37 AM
Mihir Ajmera
Mihir Ajmera - avatar
1 Answer
+ 4
No, both have no attribute for them. Yes you can control their rendering using css properties. For sake of example b{ color:red; } will show all bold contents in red colour.
5th Apr 2017, 9:58 AM
เคฆเฅ‡เคตเฅ‡เค‚เคฆเฅเคฐ เคฎเคนเคพเคœเคจ (Devender)
เคฆเฅ‡เคตเฅ‡เค‚เคฆเฅเคฐ เคฎเคนเคพเคœเคจ (Devender) - avatar