Search Header Logo

Mastering CSS Concepts

Authored by Mohammad Allam

Information Technology (IT)

Professional Development

Used 8+ times

Mastering CSS Concepts
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of CSS selectors?

To create HTML elements from scratch.

To define the structure of a webpage.

To add interactivity to HTML elements.

The purpose of CSS selectors is to select HTML elements for styling.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which selector targets all elements of a specific type?

Type selector

Class selector

Universal selector

ID selector

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

How do you select an element with a specific class in CSS?

*example

.example

#example

.class_name

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between 'flex-start' and 'flex-end' in Flexbox?

'flex-start' aligns items at the start of the container, while 'flex-end' aligns them at the end.

'flex-start' and 'flex-end' are the same

'flex-end' aligns items vertically in the middle

'flex-start' moves items to the center

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a Flexbox container?

Apply 'float: left' to the container element.

Set the CSS property 'display' to 'flex' on the container element.

Set the CSS property 'display' to 'block' on the container element.

Use the CSS property 'flex-direction' on the child elements.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What property is used to define the number of columns in a CSS Grid?

grid-template-rows

grid-columns

grid-area

grid-template-columns

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you center an item in a Flexbox layout?

Use 'justify-content: center' and 'align-items: center' on the flex container.

Use 'margin: auto' on the item itself.

Apply 'text-align: center' to the flex container.

Set 'display: block' on the flex container.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?