VOOZH about

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

⇱ SVG font-size Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

SVG font-size Attribute

Last Updated : 31 Mar, 2022

The font-size attribute refers to the size of the font from baseline when multiple lines of text are set solid in a multiline layout environment.


Syntax:

font-size="size"

Attribute Values:

  • length: Length at which we want to set the size.
  • percentage: Percentage at which we want to set the size.

We will use the font size attribute for setting the size of font.

Example 1 

Output:

👁 Image

Example 2: 

Output:

👁 Image
Comment