05-03-2009, 03:57 PM
|
Member
|
|
Join Date: Dec 2008
Location: India
Posts: 80,566
|
|
SVG <polygon>
The tag is used to create a graphic that contains at least three sides.
The Tag
The tag is used to create a graphic that contains at least three sides.
Copy the following code into Notepad and save the file as "polygon1.svg". Place the file in your Web directory:
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
xmlns="http://www.w3.org/2000/svg">
style="fill:#cccccc;
stroke:#000000;stroke-width:1"/>
Code explanation:
- The points attribute defines the x and y coordinates for each corner of the polygon
The following example creates a polygon with four sides:
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
xmlns="http://www.w3.org/2000/svg">
style="fill:#cccccc;
stroke:#000000;stroke-width:1"/>
|