I draw a circle using the <svg> tag. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

I draw a circle using the <svg> tag.

so how did i add an image inside the circle

26th Jul 2017, 5:08 AM
stephen haokip
stephen haokip - avatar
1 Resposta
+ 4
use <svgĀ height="100"Ā width="100"> Ā Ā <circleĀ cx="50"Ā cy="50" r="40" Ā fill="red"Ā /> </svg> Code explanation: The cx and cy attributes define the x and y coordinates of the center of the circle. If cx and cy are omitted, the circle's center is set to (0,0) The r attribute defines the radius of the circle. and the fill is to color the circle ( fill is used to film the color in the shape of svg )
26th Jul 2017, 11:56 AM
Art456
Art456 - avatar