Search Header Logo

CSS Quiz: Dropdowns, Animations, Layout, Flexbox

Authored by SRIDEVI T

Computers

12th Grade

Used 1+ times

CSS Quiz: Dropdowns, Animations, Layout, Flexbox
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which HTML tag was traditionally used to create scrolling text or images in a web page?

<slide>

<scroll>

<marquee>

<move>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What CSS property is used to create a dropdown menu?

visibility: hidden;

display: dropdown;

position: absolute;

dropdown: true;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the concept of CSS animations and provide an example.

CSS animations are used to create movement and change in web pages. They allow elements to gradually change from one style to another. An example of a CSS animation is animating the color change of a button when hovered over.

CSS animations are only used for text formatting.

CSS animations are used to create 3D effects on web pages.

An example of a CSS animation is changing the font size of a paragraph.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you center an element horizontally using flexbox?

justify-content: center;

margin: auto;

text-align: center;

item-order: center;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does flexbox help in creating responsive web designs?

Flexbox provides a way to layout items in a container, making it easier to create responsive web designs.

Flexbox only works for vertical layout and not responsive design

Flexbox has no impact on creating responsive web designs

Flexbox helps in creating fixed-width web designs

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the CSS property used to add padding to an element?

padding

margin

color

border

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the difference between padding and margin in CSS.

Padding and margin are the same thing in CSS.

Padding is used for horizontal spacing, while margin is used for vertical spacing.

Padding is the space outside the border of an element, while margin is the space inside the border of an element.

Padding is the space inside the border of an element, while margin is the space outside the border of an element.

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?