Search Header Logo

Frontend Assignment

Authored by Husna Shaik

Other

Professional Development

20 Questions

Used 70+ times

Frontend Assignment
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the default value of the "display" property in CSS for an HTML element?

A. Inline

B. Table

C. Block

D. None

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the difference between the "id" and "class" attributes in HTML?

A. . There is no difference

B. "id" is used to identify a unique element, while "class" is used to group multiple elements

C. "class" is used to identify a unique element, while "id" is used to group multiple elements

D. "id" and "class" are used interchangeably to identify elements

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following HTML tags is used to create a list with bullet points?

a. <ul>

b. <li>

c. <ol>

d. <dl>

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following HTML tags is used to create a hyperlink?

A. <img>

B. <p>

C. <h1>

D. <a>

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of the alt attribute in the <img> tag?

A) To add a caption to an image

B) To specify the dimensions of an image

C) To provide alternative text for an image if it cannot be displayed

D) To add a hyperlink to an image

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the difference between padding and margin in CSS?

A) Padding and margin are only used for text elements.

B) Padding is the space outside an element, while margin is the space inside an element.

C) Padding and margin both refer to the same thing.

D)Padding is the space inside an element, while margin is the space outside an element.

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the difference between inline and block elements in CSS?

A) Inline elements are displayed on their own line, while block elements are displayed inline with other elements.

B) Inline elements are displayed inline with other elements, while block elements are displayed on their own line.

C) Inline elements and block elements are the same thing.

D) Inline elements are only used for text elements, while block elements are used for all other elements.

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?