CSS 3

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Haxor Cefee
H
Haxor Cefee
Community Contributor
Quizzes Created: 2 | Total Attempts: 3,432
| Attempts: 579 | Questions: 15
Please wait...
Question 1 / 15
0 %
0/100
Score 0/100
1. What does CSS stand for?

Explanation

CSS stands for Cascading Style Sheets. This is a stylesheet language used to describe the presentation of a document written in HTML or XML. It is responsible for the visual appearance of web pages, including layout, colors, fonts, and other design elements. The term "cascading" refers to the way styles are applied to different elements, with the ability to inherit and override styles from multiple sources. This allows for consistent and efficient styling across a website or web application.

Submit
Please wait...
About This Quiz
CSS Quizzes & Trivia

CSS 3 quiz assesses knowledge on basics of Cascading Style Sheets including syntax, properties like padding, and styles application in HTML documents. It's designed for learners to understand... see moreand apply CSS effectively in web development. see less

2.
How do you insert a comment in a CSS file?

Explanation

To insert a comment in a CSS file, you can use the syntax /* this is a comment */. This allows you to add notes or explanations within the CSS code that will not be interpreted by the browser.

Submit
3. Which property is used to change the background color?

Explanation

The correct answer is "background-color:". This property is used to change the background color of an element on a webpage. It allows you to specify a color value, such as a color name, hexadecimal code, or RGB value, to be used as the background color for the selected element. By using the "background-color:" property, you can easily customize the appearance of the background of an element to match your desired design or style.

Submit
4.
How do you add a background color for all elements?

Explanation

The correct answer is h1 {background-color:#FFFFFF}. This CSS rule targets all h1 elements and sets their background color to white (#FFFFFF).

Submit
5. Which HTML tag is used to define an internal style sheet?

Explanation

The HTML tag used to define an internal style sheet is the "style" tag. This tag is placed within the head section of an HTML document and is used to define CSS rules that will be applied to the elements within the document. By using the "style" tag, developers can easily apply styles to multiple elements without the need for an external CSS file.

Submit
6. What is the correct CSS syntax for making all the elements bold?

Explanation

The correct CSS syntax for making all the

elements bold is "p {font-weight:bold}". In CSS, the "font-weight" property is used to specify the weight or thickness of the font. The value "bold" makes the text bold. Therefore, applying this style to the

elements will make the text inside them appear bold.

Submit
7. To define the space between the element's border and content, you use the padding property, but are you allowed to use negative values?

Explanation

Yes, you are allowed to use negative values for the padding property. Using negative padding values will cause the content to extend beyond the element's borders, effectively overlapping other elements. This can be useful in certain scenarios, such as when you want to create a visual effect or adjust the positioning of elements. However, it is generally recommended to use positive padding values for better readability and maintainability of the code.

Submit
8. Which CSS property controls the text size?

Explanation

The correct answer is "font-size". This CSS property is used to control the size of the text displayed on a webpage. It allows the web developer to specify the size of the font in pixels, ems, or other units of measurement. By adjusting the font-size property, the text can be made larger or smaller to enhance readability or achieve a desired aesthetic effect.

Submit
9. How do you display a border like this: The top border = 10 pixels The bottom border = 5 pixels The left border = 20 pixels The right border = 1pixel?

Explanation

The CSS property "border-width" is used to set the width of the border. The values are specified in clockwise order starting from the top border and going around to the right, bottom, and left borders. In this case, the top border is set to 10 pixels, the right border is set to 20 pixels, the bottom border is set to 5 pixels, and the left border is set to 1 pixel.

Submit
10.
How do you display hyperlinks without an underline?

Explanation

The correct answer is "a {text-decoration:none}". This CSS code is used to remove the underline from hyperlinks. The "text-decoration" property is used to control the decoration of text, and setting it to "none" removes any underline that is applied to the hyperlink.

Submit
11. How do you change the text color of an element?

Explanation

The correct answer is "fgcolor:". In CSS, the "color" property is used to change the text color of an element. The "fgcolor:" option is not a valid CSS property.

Submit
12.
How do you make a list that lists its items with squares?

Explanation

To make a list that lists its items with squares, you can use the CSS property "list-style-type: square". This property sets the marker for each list item to be a square shape. By applying this style to the list, each item will be displayed with a square marker.

Submit
13.
Where in an HTML document is the correct place to refer to an external style sheet?

Explanation

The correct place to refer to an external style sheet in an HTML document is in the

section. This is where the document's metadata and other important information, such as the title and character encoding, is typically placed. Including the link to the external style sheet in the section ensures that the styles are loaded and applied before the content of the document is rendered, resulting in a more consistent and visually appealing presentation of the webpage.
Submit
14. Which HTML attribute is used to define inline styles?

Explanation

The correct answer is "font". The font attribute in HTML is used to define inline styles. It allows you to specify the font size, color, and other font-related properties for a specific element within the HTML code. By using the font attribute, you can apply inline styles directly to an element without the need for external CSS or style sheets.

Submit
15.
Which is the correct CSS syntax?

Explanation

The correct CSS syntax is "body {color: black}". In CSS, selectors are used to target specific elements on a webpage, and in this case, the selector "body" is used to target the body element. The curly brackets {} are used to enclose the declaration block, and within the declaration block, the property "color" is set to the value "black". This syntax correctly applies the CSS style of setting the text color of the body element to black.

Submit
View My Results

Quiz Review Timeline (Updated): Mar 21, 2023 +

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

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Dec 14, 2015
    Quiz Created by
    Haxor Cefee
Cancel
  • All
    All (15)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What does CSS stand for?
How do you insert a comment in a CSS file?
Which property is used to change the background color?
How do you add a background color for all elements?
Which HTML tag is used to define an internal style sheet?
What is the correct CSS syntax for making all the elements bold?
To define the space between the element's border and content, you...
Which CSS property controls the text size?
How do you display a border like this:...
How do you display hyperlinks without an underline?
How do you change the text color of an element?
How do you make a list that lists its items with squares?
Where in an HTML document is the correct place to refer to an external...
Which HTML attribute is used to define inline styles?
Which is the correct CSS syntax?
Alert!

Advertisement