Utilizing the Span element is a recommended approach. Incorporating it with the class attribute also serves as a positive step forward. It's important to consider if this method aligns with how you consistently want to highlight content on your webpage.
If so, you might want to think about overriding the <em>
tag in Bootstrap. By default, this tag makes text italicized.
I won't delve into the specifics of customizing Bootstrap itself. Overriding the default style is quite straightforward. Simply add the following to your custom CSS:
em {
color: red;
font-style: normal;
}
The line font-style: normal;
changes italic formatting to standard.
In your HTML code, utilize the em
element.
To address the other aspect of your inquiry:
Italicize text: <em></em>
Bold text: <strong></strong>