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.
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.
+ 3
CSS paired with HTML is for creating websites.
+ 1
For cyber security related issue, go through Bobbie's replies in her AMA:
https://www.sololearn.com/learn/17791/?ref=app
+ 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