Skip to content

Commit e8d6442

Browse files
committed
Update README.md
1 parent 6c9f497 commit e8d6442

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,7 @@ socket.addEventListener('message', function(event) {
14641464

14651465
## Q. ***What is difference between SVG and Canvas?***
14661466

1467-
**1.) SVG**
1467+
### **SVG**
14681468

14691469
The Scalable Vector Graphics (SVG) is an XML-based image format that is used to define two-dimensional vector based graphics for the web. Unlike raster image (e.g. .jpg, .gif, .png, etc.), a vector image can be scaled up or down to any extent without losing the image quality.
14701470

@@ -1504,7 +1504,7 @@ There are following advantages of using SVG over other image formats like JPEG,
15041504

15051505
[Live Example](https://learning-zone.github.io/html-interview-questions/assets/files/svg.html)
15061506

1507-
**2.) Canvas**
1507+
### **Canvas**
15081508

15091509
Canvas is a HTML element is used to draw graphics on a web page. It is a bitmap with an “immediate mode” graphics application programming interface (API) for drawing on it. The `<canvas>` element is only a container for graphics. In order to draw the graphics, you are supposed to use a script. Canvas has several strategies when it comes to drawing paths, boxes, circles, text & adding images.
15101510

0 commit comments

Comments
 (0)