Want To Learn Computer Programming? Take This CSS Basics Quiz

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Academia
A
Academia
Community Contributor
Quizzes Created: 1 | Total Attempts: 342
Questions: 13 | Attempts: 342

SettingsSettingsSettings
CSS Quizzes & Trivia

Cascading Style Sheets is a style sheet language used for describing the presentation of a document written in a markup language such as HTML. CSS is a cornerstone technology of the World Wide Web, alongside HTML and JavaScript.
Want to Learn Computer Programming? Take this CSS Basics Quiz


Questions and Answers
  • 1. 

    Somebody asks you that they want to change the color of a font. What do you tell them to input into the class?

    • A.

      Color-background:#HEX;

    • B.

      Text-color:#HEX;

    • C.

      Color:#HEX;

    • D.

      Background:#HEX;

    • E.

      Hex:#HEX;

    Correct Answer
    C. Color:#HEX;
    Explanation
    color:#HEX; is the answer. text-color will not work. Background:#HEX will change the color of the element.

    Rate this question:

  • 2. 

    Look at the following link: http://s1.zetaboards.com/AcademiaQuiz01/index/What is wrong with the forum?

    • A.

      The person removed the forum layout.

    • B.

      The person removed a bracket from the end of a class. {}

    • C.

      The person removed the borders of the forum.

    • D.

      The person went wrong somewhere.

    Correct Answer
    B. The person removed a bracket from the end of a class. {}
    Explanation
    The person removed a bracket from the end of a class. If the layout was removed the forum, for the most part, would be blank.

    Rate this question:

  • 3. 

    Someone wants to add a background to something. Which of the following does he add?

    • A.

      Background:#HEX

    • B.

      Background-color:#HEX

    • C.

      Background:url(http://) #HEX;

    • D.

      Background:#HEX;

    Correct Answer(s)
    C. Background:url(http://) #HEX;
    D. Background:#HEX;
    Explanation
    The answer is background:#HEX;

    Always close a line with a semi-colon.

    Rate this question:

  • 4. 

    Somebody wants to underline something. What is the command?

    • A.

      Text-decration:underline

    • B.

      Font-style:underline;

    • C.

      Underline:yes;

    • D.

      Text-decoration:undrline;

    • E.

      None of the above

    Correct Answer
    E. None of the above
    Explanation
    The answer is none of the above. A is spelled wrong, and so is D. B and C will not do anything.

    Rate this question:

  • 5. 

    Which of these does not change font size?

    • A.

      Font-size:80%;

    • B.

      Font-size:80px;

    • C.

      Font-size:1px;

    • D.

      All of the above.

    • E.

      None of the above.

    Correct Answer
    E. None of the above.
    Explanation
    None of the above. :) All of these will change the classes.

    Rate this question:

  • 6. 

    Which of the following will not work?

    • A.

      Border:1px dotted #FFF;

    • B.

      Margin-top:1px;

    • C.

      Padding-bottom:4px;

    • D.

      Border-center:1px solid #FFF;

    • E.

      None of the above.

    Correct Answer
    D. Border-center:1px solid #FFF;
    Explanation
    D is the answer. There is no such thing as border-center.

    Rate this question:

  • 7. 

    True or False: text-align:center will ALWAYS center your text.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    True. Unless there is another class controlling the text. Otherwise, it will ALWAYS center it!

    Rate this question:

  • 8. 

    True or False: You can make different kinds of borders when coding. Example: Dotted, solid, double, etc.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    True! There are a variety of border options!

    Rate this question:

  • 9. 

    True or False: Padding DOES NOT control size. Only height:PX; and width:PX; can!

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    False! Padding controls size, and is especially useful for moving around text for abnormally-sized gradients.

    Rate this question:

  • 10. 

    Fill in the blank: (indicated by a long line) Check your spelling. The following snippet will set the _____________ color of the class.background-color:#HEX;

    Correct Answer
    background
    Explanation
    background is the obvious answer

    Rate this question:

  • 11. 

    One-word-answer: What line will make your text align to the LEFT?Make sure you type your answer CORRECTLY as if you were entering it into the CSS.

    Correct Answer
    text-align:left;
    text-align: left;
    text-align:left
    text-align: left
    Explanation
    text-align:left; is the answer. Three other options were allowed with variations of spacing, etc.

    Rate this question:

  • 12. 

    If you want to add italics, what line do you use?

    • A.

      Font-style:italic;

    • B.

      Font-style:italics;

    Correct Answer
    A. Font-style:italic;
    Explanation
    Italic! Italics won't work. :)

    Rate this question:

  • 13. 

    What are the four kinds of links?

    • A.

      Link, Visited, Hover, Active.

    • B.

      Link, Mouseover, Active, Hover.

    • C.

      Mouseover, Active, Hover, Visited.

    • D.

      Visited, Link, Active, Hover.

    Correct Answer
    D. Visited, Link, Active, Hover.
    Explanation
    D. Visited, Link, and Active.

    There is hover but it wasn't in your study guide. Hover controls the color, etc when you're hovering over the link with your mouse.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 19, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jun 22, 2009
    Quiz Created by
    Academia
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.