0
What is The use of path tag in html????
what's the use
3 Réponses
+ 2
It's used to create SVG shapes.
https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths
+ 1
https://code.sololearn.com/WdHevq9inR7M/?ref=app
(off topic) Are you a harry potter fans? Or a Lord Voldermort fans?
1.<path> tag must be contained in <svg> tag,
2. it must have
2.1attribute about strokes and
2.2 an attribute d
2.2.1and for this attribute d you must
2.2.1.1start with M or m and
2.2.1.2 end with Z
2.2.2 in between M and Z are the coordinates
you can try to edit the numbers between M and Z in d attribute in my above code and see what changes.
0
The path tag is used to draw SV shapes.,
<path> defines a path that starts from one position,
to the next, to the last,
for example, you can use it to draw lines in a triangle, or square. You’d need 3 paths, (with sort of co-ords) for a triangle etc