Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

line

Description

The line element for SVG specifies a line segment that starts at one point and ends at another.

Syntax

Attributes

pathLength

Specifies the total length of the path in user units.

Value
<number>
Default
(none)

x1

Specifies the x-coordinate of the start of the element.

Value
<length-percentage> | <number>
Default
0

x2

Specifies the x-coordinate of the end of the element.

Value
<length-percentage> | <number>
Default
0

y1

Specifies the y-coordinate of the start of the element.

Value
<length-percentage> | <number>
Default
0

y2

Specifies the y-coordinate of the end of the element.

Value
<length-percentage> | <number>
Default
0

Examples

pathLength

<number>

x1

<length-percentage>

<number>

x2

<length-percentage>

<number>

y1

<length-percentage>

<number>

y2

<length-percentage>

<number>

circle

ellipse

polygon

polyline

rect

World Wide Web Consortium (W3C)

HomeMenu