0

Is CSS needed to learn JavaScript?

I completed the tutorial for HTML, and finished the basics on CSS, and I was wondering if CSS was needed for learning JavaScript. I'm planning on going into cybersecurity and ethical hacking, and I haven't seen any articles or posts stating that CSS is necessary for either field.

30th Jul 2019, 6:50 PM
Andrew H.
4 Respuestas
+ 4
CSS is for declaratively applying styles to DOM elements. Javascript can apply styles imperatively by manipulating the DOM directly. Javascript can also be used to dynamically add / remove CSS styles to and from elements for a more interactive visual experience. Ultimately, you don't need CSS to learn Javascript and especially for the purposes for cyber-security.
30th Jul 2019, 10:14 PM
David Carroll
David Carroll - avatar
+ 3
CSS paired with HTML is for creating websites.
30th Jul 2019, 7:02 PM
Anna/Аня
Anna/Аня - avatar
+ 1
For cyber security related issue, go through Bobbie's replies in her AMA: https://www.sololearn.com/learn/17791/?ref=app
30th Jul 2019, 9:31 PM
Gordon
Gordon - avatar
+ 1
I wouldn't say it's necessary but you may want to know it anyway. Seeing as you want to get into ethical hacking you should be aware of css injection. Here's a short article to get you started: https://portswigger.net/kb/issues/00501300_css-injection-reflected
1st Aug 2019, 10:37 AM
Mike
Mike - avatar