This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Choose the best response for each of the questions.
To make all h2 elements on a page bold using a single style command, what method should be used?
h2
Use a CSS selector for h2 to set the style.
Use the style tag on each h2 element using copy and paste.
Enclose the h2 tag in a style tag.
Which best describes methods to set the color property for a font?
color
Use RGB values such as color: rgb(105, 6, 19) or color: #7462e0;
color: rgb(105, 6, 19)
color: #7462e0;
Use named color values such as color: brown; or color: lightgrey;.
color: brown;
color: lightgrey;
Use either RGB or named values.
Which is the best method to apply the same styles to multiple elements?
Change all elements to the same tag and use a tag selector in CSS
Create a custom selector and assign the class attribute on the elements to that selector.
class
Create a custom selector and assign the id attribute on the elements to that selector.
id
You must answer all questions before checking your work.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?