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 Practice Manipulating the DOM!
You have completed Practice Manipulating the DOM!
Preview
This video covers one solution to the challenge.
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
and then try to recreate it yourself.
0:00
You can also reference all my code
when you download the project files.
0:00
So first, to set the text of the h1,
I first selected it
0:03
with document.querySelector, and
assigned it to the variable title.
0:09
Then I used the textContent property,
0:15
which reads or
sets text values of elements.
0:17
And I assigned title.textContent a string
with the text, My Activities List.
0:20
And as you can see, this displays the text
My Activities List inside the h1 tag.
0:26
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