Some Basic SVG Elements

Chapter 3 describes the SVG elements that define basic graphical shapes—such as a rectangle and circle, as shown in previous examples— that directly create a visual appearance onscreen. First, this section describes a number of other SVG elements that are not necessarily immediately visible onscreen but that are useful nonetheless.

The SVG <a> element, which functions similarly to the HTML/XHTML <a> element, is considered in Chapter 5, “Creating Navigation Bars.”

The <desc> element

SVG container or graphics elements can contain a text-only description contained within a <desc> element. This description provides the opportunity to document a whole SVG document or image, or part of it, thus facilitating maintenance.

Get Designing SVG Web Graphics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.