SVG (Scalable Vector Graphics) is an XML-based markup language for creating scalable vector graphics and animations on the web, supported by all modern browsers. It allows for resolution-independent images that can be manipulated with CSS and JavaScript, offering advantages like smaller file sizes and accessibility. Key features include basic shapes, paths, text support, transformations, gradients, filters, and various methods for embedding SVG in HTML documents.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0 ratings0% found this document useful (0 votes)
19 views13 pages
Unit 3-SVG
SVG (Scalable Vector Graphics) is an XML-based markup language for creating scalable vector graphics and animations on the web, supported by all modern browsers. It allows for resolution-independent images that can be manipulated with CSS and JavaScript, offering advantages like smaller file sizes and accessibility. Key features include basic shapes, paths, text support, transformations, gradients, filters, and various methods for embedding SVG in HTML documents.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 13
-HTMLS SVG
HTMLS5-— SVG
3.1. HTMLS5 - SVG:
SVG(Scalable Vector Graphics) is a markup language used to create vector
based graphics and animations on the web. It allows for the cteation of scalable and
resolution-independent images that can be manipulated and animated using JavaScript
or CSS. SVG is supported by all modem web browsers and provides a wide range of
features and elements to create visually appealing and interactive graphics
SVG is an XML-based file format for describing vector graphics, which are
graphics that use mathematical formulas to describe shapes, rather than pixels.This
makes SVGs ideal for creating images that can scale infinitely without losing quality
regardless of screen size or resolution. They are commonly used for logos, icons,
charts, and other graphical elements.
Advantages of SVG: The advantages of using SVG over other image
and GI
formats (like IPE
* SVG images scale without losing quality, making them perfect for
responsive designs
* SVG files are often smaller than bitmap images, reducing load times.
* SVG images can be edited easily with text editors, allowing for quick
changes
* SVG content is accessible to screen readers, enhancing web accessibility
* SVG supports CSS and JavaScript animations, allowing for interactive
and dynamic graphics.
Key features of HTMLS SVG include:
SLN| Feature Definition
1 | Basie Shapes Basic Shapes: SVG provides elements such as , ,
, , , and to cteate basic
shapes on the canvas.
Ms.Neha,Dept. Of Computer Science,PESIAMS,Shimoga. 1UNIT 3 -HTMLS SVG
2 | Paths
SVG allows you to create complex shapes using path commands
like clement, which supports various commands like M
(move to), L (line to), € (eubie Bezier curve), Q (quadratic Bezier
curve), and more.
Text
SVG supports the element to display text within the
graphic, allowing you to control the font, size, alignment, and
other text-related properties
4 | Transformations
SVG provides transformations like translation, rotation, scaling,
and skewing through attributes like transform, allowing you to
‘manipulate and animate elements in the SVG canvas,
Gradients
SVG supports lincar and radial gradients using the
clements, allowing you to create smooth
color transitions across shapes and objects.
6 | Filters and Effects
SVG offers a variety of filters and effects to apply to shapes
and images,
such as blurring, drop shadows, color adjustments, and more, using
the element.
7 | Animation
SVG supports animation and interactivity through CSS animations,
JavaScript, and the element. You can animate properties
like position, size, color, opacity, and more to create dynamic and
engaging visuals.
8 | Integration with
HTMLS
SVG can be seamlessly integrated with HTMLS elements and other
technologies. You can embed SVG directly within an HTML
document using the