Search Header Logo

Mastering HTML and CSS Concepts

Authored by Ms STAFF

Computers

Professional Development

Used 1+ times

Mastering HTML and CSS Concepts
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

What property is used to create a flex container in CSS?

flex-direction: row

display: flex

align-items: center

display: grid

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'grid-template-columns' property in CSS Grid?

To define the overall height of the grid layout.

To set the background color of a grid item.

To define the number and size of columns in a CSS Grid layout.

To control the spacing between grid items.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you create a responsive grid layout using CSS Grid?

Use Flexbox with 'display: flex' for layout.

Set 'float: left' on grid items for alignment.

Apply 'position: absolute' to create a grid structure.

Use CSS Grid with 'display: grid', 'grid-template-columns', and media queries for responsiveness.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What attribute is used to create a text input field in an HTML form?

type='text'

type='button'

type='textarea'

type='input'

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a checkbox input in an HTML form?

Example Button

Example Checkbox

Example Text

Example Radio

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between 'display: flex' and 'display: grid'?

The main difference is that 'display: flex' is for one-dimensional layouts, while 'display: grid' is for two-dimensional layouts.

'display: flex' is only for mobile layouts, while 'display: grid' is for desktop layouts.

'display: flex' allows overlapping elements, whereas 'display: grid' does not.

'display: flex' is used for animations, while 'display: grid' is for static layouts.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the 'action' attribute in an HTML form used for?

The 'action' attribute specifies the URL for form submission.

The 'action' attribute is used to style the form elements.

The 'action' attribute defines the form's method type.

The 'action' attribute specifies the form's title.

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?