Search Header Logo

HTML and CSS Quiz

Authored by Fadi Fadi

Information Technology (IT)

9th - 12th Grade

Used 1+ times

HTML and CSS Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which HTML tag is used to define a table?

(td)

(tr)

(th)

(table)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of the "colspan" attribute in an HTML table?

It spans a cell across multiple rows.

It defines a column header.

It merges cells horizontally across columns.

It merges cells vertically across rows.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can table cells be merged vertically in HTML?

By using the "colspan" attribute.

By using the "rowspan" attribute.

By using the "merge" attribute.

By using the "span" attribute.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which HTML tag is used to insert an image inside a table cell?

(img)

(image)

(picture)

(embed)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What CSS property is used to remove spaces between table borders?

border-collapse: collapse;

table-collapse: collapse;

collapse-borders: true;

border-style: collapse;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which CSS property allows setting a table’s background color?

background-color

table-color

table-background

bg-color

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you set the width of a table to occupy the full page width using CSS?

table-width: 100%;

width: 100%;

table-layout: 100%;

width-table: 100%;

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?