This write-up will explain how to make text italicized using Bootstrap.
Bootstrap Italics With Code Examples
In Bootstrap, the “font-italic” class is utilized to make text italicized. It has a predefined CSS “font-style” property with the value “italic”.
We will learn the Bootstrap italics by implementing the following examples:
- How to Make the Text Italicized Within the Paragraph in Bootstrap?
- How to Make the Text of “<a>” Element Italicized in Bootstrap?
How to Make the Text Italicized Within the Paragraph in Bootstrap?
The “<span>” is an inline element. It is utilized with the class “font-italic” within the paragraph to make the text italicized.
Check out the example mentioned below:
- Add the “<h1>” element to specify the heading.
- Then, add the “<p>” tags to add a paragraph. Use the “<span>” element with the class “font-italic” around the text which you want to emphasize.
HTML
Output
How to Make the Text of “<a>” Element Italicized in Bootstrap?
The HTML “<a>” tag is used to make the text clickable. To make its text in italic style, add the class “font-italic” as shown in the below example:
Output
That was all about making text italic in Bootstrap with examples.
Conclusion
To make the text italicized in Bootstrap, the “font-italic” class is utilized. This class has a predefined CSS “font-style” property with the value “italic”. To make the text italic within the paragraph, the “<span>” element with the “font-italic” class is used. This write-up has described how to make text italic in Bootstrap with code examples.