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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.