Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Front end Web Development - Can everything that Javascript and JQuery is used for be done with CSS3?

So I was debating with a friend that there is so much that JS and JQuery can do which CSS3 cannot. He seems to think JS and JQ are insecure and CSS3 can do everything that they do.

Could someone explain to me why JS and JQuery are actually needed and what they can do which CSS3 can't? Also, why are they essential for front-end?

Basically, can you backup my argument?

Thanks.

1 Answer

Basically, CSS is something to style the html and add some basic interactive behavior (h:hover) but when you need real interactions, like a drag and drop you need javascript/jquery. Also js allow you to update parts of your page by quering/receiving data from the server (ajax).