What is stroke in html5? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

What is stroke in html5?

23rd May 2017, 9:45 AM
Lalit Ghongade
Lalit Ghongade - avatar
2 Réponses
+ 1
stroke is used in HTML5 Canvas. while you draw something ( line, shape, path etc.) you can fill the whole shape or set a stroke. ...... context.stroke() stroke is like a border in css. it doesn't fill the whole shape.
23rd May 2017, 10:13 AM
Apel Mahmod
Apel Mahmod - avatar
+ 1
If you mean horizontal stroke (<hr>): It is just a horizontal stroke. Often used as a seperator
23rd May 2017, 12:12 PM
Skayo
Skayo - avatar