It is important to learn Html before learning JavaScript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

It is important to learn Html before learning JavaScript?

15th Dec 2016, 5:16 PM
Tricknology Hub
Tricknology Hub - avatar
5 Answers
+ 7
Look at this example carefully: In HTML: <form action="url" method="GET"> <input type="text" id="first" placeholder="Type your first name" /> <!--Swarnab--> <input type="text" id="last" placeholder="Type your last name" /> <!--Das--> </form> In JavaScript: var firstName = document.getElementById("first"); var lastName = document.getElementById("last"); var fullName = firstName + "" + lastName; // full name Swarnab Das In this example, you can see I used an id to get the first and last name from the form so if you know HTML it's really helpful for your career. Keep learning!
15th Dec 2016, 6:51 PM
Swarnab Das
Swarnab Das - avatar
+ 3
All depends on what you want to do. Learning HTML isn't mandatory but it is greatly recommended if you want to do js
15th Dec 2016, 5:20 PM
pocholin
pocholin - avatar
+ 2
The javascript is a scripting language. to view and manipulate the output of html, we can use java script. Basic knowledge of html will help you to see proper output of your results.
15th Dec 2016, 5:21 PM
Viral Parekh
Viral Parekh - avatar
+ 1
i agree with @ViralParekh If you want to learn JS you should definately learn html because learning HTML will increase the likely hood of you being able to understand JS
15th Dec 2016, 6:24 PM
Noah
Noah - avatar
- 1
I'm lost
16th Dec 2016, 11:03 PM
Rob Lee