Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Titre du document</title> </head> <body> <h2>Exemple de la propriété stroke-linecap </h2> <svg viewBox="0 0 6 4"> <!-- Effect of the "square" value --> <path d="M1,1 h4" stroke="#8ebf42" stroke-linecap="square" /> <!-- Effect of the "square" value on a zero length path --> <path d="M3,3 h0" stroke="#8ebf42" stroke-linecap="square" /> <!-- les liens roses suivantes surlignent la position du chemin pour chaque trait --> <path d="M1,1 h4" stroke="#1c87c9" stroke-width="0.05" /> <circle cx="1" cy="1" r="0.05" fill="#1c87c9" /> <circle cx="5" cy="1" r="0.05" fill="#1c87c9" /> <circle cx="3" cy="3" r="0.05" fill="#1c87c9" /> </svg> </body> </html>