Skip to content

Commit ef44469

Browse files
committed
Add backticks
Add backticks & properties/values
1 parent f9ad04c commit ef44469

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

z01-web-standards.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ children and attributes, and you can respond to the same mouse/touch events.
150150

151151
Even CSS styles and selectors can apply to SVG elements. The CSS attribute names for SVG
152152
come from the SVG definition, so they are sometimes different from their
153-
HTML brethren. (For example, to change the background color of a div to red you would set its "background-color" to red but to get the same effect on an SVG rectangle you would instead use the attribute "fill" since an SVG rect doesn't respond to background-color for styling.)
153+
HTML brethren. (For example, to change the background color of a div to red you would select it then set `background-color: red` but to get the same effect on an SVG rectangle you would instead use the attribute `fill: red` since an SVG rect doesn't respond to background-color for styling.)
154+
154155

155156
SVG defines tags for lots of basic shapes, like `<rect>` and `<circle>` and `<line>`.
156157

0 commit comments

Comments
 (0)