DONT ADD ANYTHING HERE!

Notes

<polygon points = "x1, y1, x2, y2, ..." />
  1. The polygon element defines a closed shape consisting of a set of connected straight line segments
  2. The last point is connected to the first point
  3. points
    This attribute defines the list of points, pairs of (x, y) absolute coordinates required to draw the polygon
  4. pathlength
    This attribute lets specify the total length for the path, in user units

Code

HTML

    <div class="flex_container">

        <object data="../svg/svg_example_three.svg" 
                type="image/svg+xml">
        </object>

    </div>

SVG

    // svg_example_three.svg

    <svg version= "1.1" 

        width = "300"
        height = "150"
        xmlns = "http://www.w3.org/2000/svg">

        <!--outer rectangle-->

        <rect  width="100%" 
               height="100%" 
               fill="lightgoldenrodyellow" />

        <!--filled red triangle-->

        <polygon points = "75,25, 125,75,25,75" 
                 fill="red"/>

        <!--blue line of open triangle-->

        <line x1="175" y1="75" x2="275" y2="75" 
              style="stroke:blue; stroke-width:4"/>

        <!--green line of open triangle-->

        <line x1="275" y1="75" x2="225" y2="125" 
              style="stroke:green; stroke-width:4" />

        <!--red line of open triangle -->

        <line x1="225" y1="125" x2="175" y2="75" 
              style="stroke:red; stroke-width:4" />
    </svg> 

References