+ 2
Do java script works like html
I want to design an app will I use both java script and html or only java script
6 ответов
+ 6
HTML is a markup language that provides declarative instructions to the browser on how to load the DOM (or Document Object Model) into memory.
CSS is a stylesheet language that provides declarative instructions to the browser for setting style properties to be applied to DOM nodes once loaded into memory.
Javascript is a general purpose language that provides imperative statements to further mutate the DOM according to various event triggers.
Many people find learning declarative languages like HTML and CSS to be comparatively easier than learning imperative languages like Javascript.
These are completely different paradigms involving completely different ways of thinking programmatically.
To learn more, check out my responses on this thread: (be sure to sort by date)
https://www.sololearn.com/Discuss/1944147/
And this post: (See Lord Krishna Thread)
https://www.sololearn.com/post/141278/
Understanding how these paradigms differ may help you adjust your expectations and approach in learning.
+ 5
They are both parsed/interpreted by the web browser.
+ 5
• The Difference Between HTML, CSS and JavaScript — http://www.web-development-institute.com/the-difference-between-html-css-and-javascript
+ 3
JS can do everything. But its ok too if you use both
+ 2
U have to use both, is depends on dom which is part of html so please do both. Unless it's a 1d game u can ofc use only js, but not recommended