Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed CSS Selectors Quickstart !
You have completed CSS Selectors Quickstart !
Preview
In this stage, we'll explore the role of CSS selectors in JavaScript. You'll also learn tips for naming selectors and working with selectors in JavaScript.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
webpages.
0:00
But why is it also important that you
understand selectors when working with
0:00
JavaScript?
0:03
As you've learned, selection is a way to
identify an element for a browser, so
0:04
the browser can find it and make it
available for us to do something with it.
0:08
For example, target a visited link and
change its text color to azure.
0:12
Well you also use selectors in JavaScript
when writing code that works with the DOM,
0:17
or Document Object Model.
0:22
Just like CSS selectors control
the appearance of elements on a web page,
0:23
selectors are used in JavaScript to let
you control an element's behavior, and
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up