+ 1
How does javascript fit into html?
I'm just starting out learning and I'm a little confused. Anytime I end up pressing the "try it yourself" button in the tutorials it takes me to the code playground and it doesn't resemble what's going on in the example pictures from the previous pages super well. I just want to know what I'm doing and how it's effecting what looks like the structure of the html. Please and thank you.
4 Answers
+ 2
It is recommended that you take the html course for a while before starting javascript.
Later on in html, javascript knowledge will be required so you can finally start javascript course.
Further down in javascript, a bit more html knowledge will be required so you can do back learning html.
Alternate between the courses as you see fit, but it is recommended to start off with html and get a feel as to the structure.
You may he able to understand why code does what it does, then.
+ 1
Thanks man. I was recommended not to go bouncing between languages but so far it seems like the best approach.
0
Forget about the function of document.write.
Go to study how to use and implement document.querySelector and document.querySelectorAll functions, on update any contents of HTML DOM elements dynamically.
0
If the languages are patently related (like HTML + CSS + JavaScript), then it might feel bouncy. If the languages are redundant (like they both do roughly the same things but have slightly different syntax), then it could get confusing.