Skip to content

Commit 71142ef

Browse files
authored
Merge pull request #156 from ravig31/master
Typo on rectangle coordinates for SVG example in html.md
2 parents 1cf9885 + 456c42a commit 71142ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_chapters/html.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Now, let’s add a rectangle `<rect>` element inside the SVG to represent the mo
7878
</svg>
7979
```
8080

81-
In this step, we’ve defined a rectangle with a starting position at coordinates (10, 10) and a width and height of 20 units each. The rectangle is filled with a blue colour. Importantly, we’ve given the `<rect>` element a unique id `blueRectangle` by which we can refer to it elsewhere; below, we’ll demonstrate adding an animation behaviour to this rectangle using this id from CSS or JavaScript.
81+
In this step, we’ve defined a rectangle with a starting position at coordinates (10, 5) and a width and height of 20 units each. The rectangle is filled with a blue colour. Importantly, we’ve given the `<rect>` element a unique id `blueRectangle` by which we can refer to it elsewhere; below, we’ll demonstrate adding an animation behaviour to this rectangle using this id from CSS or JavaScript.
8282

8383
Most HTML elements, including SVG elements have certain attributes according to their documentation, which determine how they are rendered and behave in the browser. [MDN](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/rect) is normally a good reference for what is available to use.
8484

0 commit comments

Comments
 (0)