have you tried gdevelop? it's alot different from coding with scratch, it does event-based visual scripting not "blocks of code" style scripting, but it is very intuitive, it is mit-licensed libre software, exports to html5 natively, and executables can be built manually or using their web compiler thing. i know you said you are learning to code, so if that is your real end goal then gdevelop might not be for you, as it is definately "cheating" and the way of thinking about how to accomplish something is quite different from traditional coding. if your goal is just to make games, then it is a great engine. personally i have never been able to code effectively. my brain just misfires and i have a spiritual seizure. i have been fiddling with hobbyist gamedev since the late 90s when i was kid, and i've never really learned to code. maybe i'm just lazy. i am only just learning to use gdevelop now, the engine i have worked with since the 90s is clickteam fusion and it's ancestors, but i am trying to migrate to open source stuff in general whenever it's possible for me to do so.
good luck to you. i look forward to seeing your game!