Linked in quiz

LinkedIn Css quiz

LinkedIn Css quiz
# Among these selectors which selector has the highest specificity ranking for selecting the anchor link element? ```css ul li a a .example a div a ``` - [x] `.example a` - [ ] `div a` - [ ] `a` - [ ] `ul li a` # Using an attribute selector, how would you select an `` element with a "title" attribute? - [x] `a[title]{...}` - [ ] `a > title {...}` - [ ] `a.title {...}` - [ ] `a=title {...}` Note: an alternative to the question below. # What is the CSS selector for an `` tag containing the title attribute? - [x] `a[title]` - [ ] `a > title` - [ ] `a=title` - [ ] `a.title` Note: an alternative to the question above. # CSS grid and flexbox are now becoming a more popular way to create page layouts. However, floats are still commonly used, especially when working with an older code base, or if you need to support older browser version. What are two valid techniques used to clear floats? - [ ] Use the "clearfix hack" on the floated element and add a float to the parent element. - [ ] Use the overflow property on the floated element or the "clearfix hack" on either the floated or parent element. - [ ] Use the "clearfix hack" on the floated element or the overflow property on the parent element. - [x] Use the "clearfix hack" on the parent element or use the overflow property with a value other than "visible." # What element(s) do the following selectors match to? ```css 1) .nav { ...; } 2) nav { ...; } 3) #nav { ...; } ``` - [ ] ```markdown 1. An element with an ID of "nav" 2. A nav element 3. An element with a class of "nav" ``` - [ ] ```markdown They all target the same nav element. ``` - [x] ```markdown 1. An element with an class of "nav" 2. A nav element 3. An element with a id of "nav" ``` - [ ] ```markdown 1. An element with an class of "nav" 2. A nav element 3. An div with a id of "nav" ``` # When adding transparency styles, what is the difference between using the opacity property versus the background property with an `rgba()` value? - [ ] Opacity specifies the level of transparency of the child elements. Background with an `rgba()` value applies transparency to the background color only. - [ ] Opacity applies transparency to the background color only. Background with an `rgba()` value specifies the level of transparency of an element, as a whole, including its content. - [x] Opacity specifies the level of transparency of an element, including its content. Background with an `rgba()` value applies transparency to the background color only. - [ ] Opacity applies transparency to the parent and child elements. Background with an `rgba()` value specifies the level of transparency of the parent element only. # What is true of block and inline elements? (_Alternative_: Which statement about block and inline elements is true?) - [ ] By default, block elements are the same height and width as the content container between their tags; inline elements span the entire width of its container. - [x] By default, block elements span the entire width of its container; inline elements are the same height and width as the content contained between their tags. - [ ] A `

About Us

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

Know More

Category

Join Our Newsletter

Join our newsletter to stay in the loop for new contents.