Thread: SVG Tutorial
View Single Post
  #7  
Old 05-03-2009, 03:56 PM
welcomewiki welcomewiki is offline
Member
 
Join Date: Dec 2008
Location: India
Posts: 80,542
Default SVG <line>

The tag is used to create a line.
The Tag

The tag is used to create a line.


Copy the following code into Notepad and save the file as "line1.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="stroke:rgb(99,99,99);stroke-width:2"/>

Code explanation:
  • The x1 attribute defines the start of the line on the x-axis
  • The y1 attribute defines the start of the line on the y-axis
  • The x2 attribute defines the end of the line on the x-axis
  • The y2 attribute defines the end of the line on the y-axis
Reply With Quote