A developer needs to ensure that an SVG logo scales responsively with different screen sizes while maintaining its aspect ratio. Which SVG attribute should they focus on adjusting?

  • height
  • preserveAspectRatio
  • viewBox
  • width
In SVG, the preserveAspectRatio attribute allows developers to control how the SVG scales within its container while maintaining its aspect ratio. Adjusting this attribute ensures responsive scaling on different screen sizes.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *