Now that you've learned about path, let's take a look at some more straightforward parts of the SVG universe and let's examine some more basic shapes. You've already learned about circle and rect. Let's take a look at a few more basic shapes.
More on basic shapes
The line element
The path element allows you to draw anything you can imagine using a long series of instructions. Thankfully, there are many convenient elements that define common shapes that are a lot easier to work with than the path element. The first of these that you'll learn about is the line element.
The following example draws a grid on a 500 by 500 square. The line elements in use here take five arguments: x1, y1,...