


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



elements, the p selector can be used to create style rules. codejcademy
/* Selects all elements with class="column" */ -column /* Selects element with id="first-item" */ h1, h2 color: red CSS ID selectors The CSS ID selector matches elements based on the contents of their id attribute. The values of id attribute should be unique in the entire DOM. For font-weight selecting the element having job-title as the value of the id attribute,a # needs to be prepended. CSS descendant selector The CSS descendant selector combinator is used to match elements that are descended from another div p matched selector. They are denoted by a single space between each selector and the descended selector. All section ol li matching elements are selected regardless of the nesting level in the HTML. bold code Icademy