VOOZH about

URL: https://www.geeksforgeeks.org/html/svg-font-style-attribute/

⇱ SVG font-style Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

SVG font-style Attribute

Last Updated : 31 Mar, 2022

The font-style attribute is used to specify whether the text is to be rendered using a normal, italic, or oblique face style. 

Syntax:

font-style="style"

Attribute Values: The attribute can have the following values:

  • normal: This specifies that the text should be displayed in the normal form.
  • italic: This specifies that the text should be displayed in the italic form.
  • oblique: This specifies that the text should be displayed in the oblique form.

We will use the font-style attribute for styling the font in the following examples:

Example 1: 

Output:

👁 Image

Example 2: 

Output:

👁 Image
Comment