Skip to Main Content
SVG for Web Developers
book

SVG for Web Developers

by Ellen Pearlman, Lorien House
December 2002
Beginner to intermediate content levelBeginner to intermediate
464 pages
8h 34m
English
Pearson
Content preview from SVG for Web Developers

Styles: Inline and Embedded

First, let's review what we know so far about styles. The style attribute contains various properties. For instance, in the code in Example 8-1, fill, stroke, and stroke-width are properties of the style attribute. These properties control the color of the circle and the color and width of its outline. The properties are further defined by values. The values of the properties in Example 8-1 follow each of the properties and are separated from each property by a colon (e.g., fill:red, stroke:orange, and stroke-width:2). If there is more than one property in the style attribute, the properties are separated by semicolons.

This way of coding the style attribute is known as an inline style. Styles are created for each ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Web Applications with SVG

Building Web Applications with SVG

Jon Frost David Dailey and Domenico Strazzullo
SVG Text Layout

SVG Text Layout

Amelia Bellamy-Royds, Kurt Cagle
Using SVG with CSS3 and HTML5

Using SVG with CSS3 and HTML5

Amelia Bellamy-Royds, Kurt Cagle, Dudley Storey

Publisher Resources

ISBN: 0131004999Purchase book