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/polygon below:

polygon ยท WebPlatform Docs

polygon Overview Table
DOM Interface
SVGElement
Examples

In the following code example, the polygon element is used to draw a seagreen polygon inside an inline SVG element. Copy this sample to a text file and save it with the .html file extension. Run it in Internet Explorer 9 to see a seagreen polygon.

It should look like this:



<!DOCTYPE HTML>
<html>
  <head></head>
  <body>
    <svg width="400" height="400">
      <polygon points="50,50 150,120 100,220" fill="seagreen" />
    </svg>
  </body>
</html>
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.

Standards information Members

The SVGPolygonElement object has these events:

The SVGPolygonElement object has these methods:

The SVGPolygonElement object has these properties:

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