Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
The window
object contains a property named document
, which is an object, and it's the entry point into the DOM loaded in the current window. We use the document
object to select and control elements of the web page. This document
object and some of its common properties are what we'll focus on for the rest of this course.
Further Reading
- Document – MDN
- Review this Common CSS Properties Reference to learn what CSS properties look like when converted to camelCase
- Element.remove() – MDN
Style property names with two or more words, like backgroundColor
and borderColor
are in camelCase. This is different from how you'd write them in CSS with dashes between each word.
JavaScript's core methods and properties all use camelCase, including all DOM properties, attributes, and event handlers. The inline CSS style declaration properties are no different, and it's important to remember when working with the style
property.
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
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