Giter Site home page Giter Site logo

css-essentials-quiz-seattle-web-010620's Introduction

CSS Essentials Quiz

???

CSS Essentials Quiz

?: CSS stands for Cascading Style Sheet.

(X) TRUE ( ) FALSE

?: It is impossible to validate CSS to check if it is correct.

( ) TRUE (X) FALSE

?: Which of the following code demonstrates a CSS comment?

( ) // This is a comment in CSS (X) /* This is a comment in CSS */ ( ) <!-- This is a comment in CSS --> ( ) # This is a CSS comment

?: Which is the correct (and most specific) CSS selector statement to select the text inside the HTML element and change the text color to red in the following example:

<p>Lorem Ipsum</p>

( ) p > { color: red } ( ) p { text-color: red; } (X) p { color: red; } ( ) None of the above.

?: Which is the correct (and most specific) CSS selector statement to change the text color of the first <li> element to red in the following example:

<ul>
   <li class="redtext">Gravy</li>
   <li>Turkey</li>
   <li>Potato</li>
</ul>

(X) .redtext { color: red; } ( ) #redtext { color: red; } ( ) li > redtext { color: red; } ( ) None of the above.

?: Which is the correct (and most specific) CSS selector statement to select the text inside the HTML element and change the text color to red in the following example:

<div id="media">
   Lorem Ipsum Dolores.
</div>

( ) .media { color: red; } ( ) div > media { color: red; } (X) #media { color: red; } ( ) None of the above.

?: You can apply multiple CSS IDs to the same element.

( ) TRUE (X) FALSE

?: You can apply multiple CSS Classes to the same element.

(X) TRUE ( ) FALSE

?: In the following example, p is a:

p { color: red; }

(X) Selector ( ) Property ( ) Value ( ) Declaration

?: In the following example, color: red; is a:

p { color: red; }

( ) Selector ( ) Property ( ) Value (X) Declaration

?: In the following example, color is a:

p { color: red; }

( ) Selector (X) Property ( ) Value ( ) Declaration

?: In the following example, red is a:

p { color: red; }

( ) Selector ( ) Property (X) Value ( ) Declaration

?: In the following example, which is the correct (and most specific) CSS selector statement to select all of the descendants <li> inside of <ul id="salsa"> and style their text color red?

Note: only style <li> inside <ul id="salsa">, NOT <li> elsewhere in the page.

<ul id="salsa">
   <li>Hot</li>
   <li>Medium</li>
   <li>Mild</li>
</ul>

( ) ul li { color: red; } (X) #salsa li { color: red; } ( ) li.salsa { color: red; } ( ) .salsa #li { color: red; }

?: Which is the correct (and most specific) CSS selector statement to select the text inside the HTML element and change the text color to red when the user hovers over it with their mouse?

<a href="index.html">Home</a>

( ) #hover { color: red; } ( ) a.hover { color: red; } (X) a:hover { color: red; } ( ) None of the above.

?: The Developer Tools can be used to see the given CSS styles applied to a specific element and can be used to preview style changes in the browser.

(X) TRUE ( ) FALSE

???

css-essentials-quiz-seattle-web-010620's People

Contributors

annjohn avatar danielseehausen avatar fislabstest avatar gj avatar jongrover avatar justindhall avatar maxwellbenton avatar nscarlyon avatar pletcher avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.