HTML SVG

 HTML SVG


HTML also provides elements for creating scalable vector graphics (SVG) on web pages. SVG is a vector-based format that allows graphics to be resized without losing quality.


Here's an example of embedding an SVG image into an HTML page:


html


<svg width="100" height="100">

  <rect x="10" y="10" width="80" height="80" fill="red" />

</svg>

In this example, the <svg> element is used to create a 100x100 SVG canvas, and the <rect> element is used to draw a red rectangle with a width of 80 and a height of 80 at coordinates (10,10).

No comments:

Post a Comment

The Importance of Cybersecurity in the Digital Age

 The Importance of Cybersecurity in the Digital Age Introduction: In today's digital age, where technology is deeply intertwined with ev...