What is the significance of the 'viewport' attribute in an SVG used in a web page?
- Defines the visible area of an SVG image
- Determines the zoom level of the SVG
- Sets the width and height of the SVG element
- Specifies the position of the SVG on the web page
The 'viewport' attribute in an SVG defines the visible area of the image. It is crucial for responsive design, allowing developers to control how the SVG scales and fits within its container on different devices.
Loading...
Related Quiz
- How does the use of CSS variables (custom properties) impact the maintainability and performance of a website?
- How does CSS specificity affect the cascade?
- In Flexbox, the flex-________ property allows an item to grow or shrink to fit the space available in the flex container.
- What value of the display property makes an element behave like a block-level element but allows it to sit inline with other content?
- The CSS function ______ allows you to perform arithmetic calculations directly within your stylesheets.