A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/svg/elements/polyline below:

polyline · WebPlatform Docs

polyline Summary

The polyline element is a SVG basic shape to create a series of lines connecting several points. Usually, a polyline is used to create open shapes.

Overview Table
DOM Interface
SVGPolylineElement
Examples

In the following code example, the polyline element is used to draw a gold polyline inside an inline SVG element.



<svg width="400" height="400"  version="1.1" xmlns="http://www.w3.org/2000/svg">
  <polyline points="50,50 150,120 100,220 200,150" stroke="gold" stroke-width="1" fill="none" />
</svg>

[View live example](http://code.webplatform.org/gist/37caee51f773695efdd4)

Notes Remarks

Note: In addition to the attributes, properties, events, methods, and styles listed above, SVG elements also inherent core HTML attributes, properties, events, methods, and styles.

Typically, polyline elements define open shapes. Note: You cannot provide an odd number of coordinates.

Attributes Global attributes Specific attributes DOM Interface

This element implements the SVGPolylineElement interface.

Members

The SVGPolylineElement object has these events:

The SVGPolylineElement object has these methods:

The SVGPolylineElement object has these properties:

Related specifications
The ‘polyline’ element
W3C Recommendation

{{

Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4