DEV Community

Discussion on: How long I need to be good at html and css? I started before two weeks I feel so stupid.

Collapse
 
fish1 profile image
Jacob Enders

I've been teaching myself HTML, CSS and Javascript for the past 5 years. And every day I learn stuff.

Just yesterday I figured out that it is possible to attach a single on click event listener to the root of an SVG. Before yesterday I was using query selectors and iterating though all the children elements of the SVG to give them all their own event listener.

Felt pretty stupid, but now I am able to save myself 50 lines of code.