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 Basics!
You have completed CSS Basics!
Preview
In our previous stage, we saw a bit of CSS in action, but now it’s time to learn the parts of the language. Writing CSS means learning how to write CSS rules, which tell browsers how to render HTML elements.
Further reading
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
In our previous stage, we
saw a bit of CSS in action, but
0:00
now it's time to learn
the parts of the language.
0:00
Writing CSS means learning
how to write CSS rules,
0:03
which tell browsers how
to render HTML elements.
0:07
A CSS rule is made up
of two main parts,
0:13
the selector followed by the
declaration block. The selector
0:17
is the part of the CSS rule
that targets HTML elements.
0:21
It's what actually lets us select
the content we want to style.
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