Reminds me of when JS was used inline in 'the old days' to swap images on mouse over. If my memory serves me correctly the code was something like this:
That looks right. It's the most basic introduction. I'm sure most people would use libraries and frameworks to make their lives easier.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.