How does javascript fit into html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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.

25th Jul 2018, 12:05 PM
Will Gavan
Will Gavan - avatar
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.
25th Jul 2018, 12:21 PM
Andre Daniel
Andre Daniel - avatar
+ 1
Thanks man. I was recommended not to go bouncing between languages but so far it seems like the best approach.
25th Jul 2018, 12:25 PM
Will Gavan
Will Gavan - avatar
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.
25th Jul 2018, 12:21 PM
Calviղ
Calviղ - avatar
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.
25th Jul 2018, 2:54 PM
Janning⭐
Janning⭐ - avatar