+ 2
why is this model (style=fill:green) used when something like (fill= "green") still performs the same function.
4 Respuestas
+ 3
It's not more complicated. It's just CSS. Actually, using stylesheets can save you time if you set a certain style to a large group of elements. But then you have to move styles to an area called <defs>, not inline as SoloLearn does it.
Note: not all attributes can be set via CSS.
+ 2
the context is in the coloring of the svg images. both codes can produce the sane result. but solo learn decided to use the former in their example. the style:fill green is more complicated. so why not just use the simpler one. fill="green". I tried it and it still works.
+ 1
what?
+ 1
In what context?