Search Header Logo

Understanding HTML Elements and Attributes

Authored by Dhen Jr

Computers

8th Grade

Understanding HTML Elements and Attributes
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are empty elements in HTML?

Empty elements can contain text and attributes.

Empty elements are only used for images and links.

Empty elements are tags that require a closing tag.

Empty elements in HTML are tags that do not have any content and are self-closing.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List three attributes of the font element.

style

color, size, face

weight

alignment

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the bgcolor attribute do?

The bgcolor attribute sets the text color of an HTML element.

The bgcolor attribute changes the font size of an HTML element.

The bgcolor attribute sets the background color of an HTML element.

The bgcolor attribute adds a border to an HTML element.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What values can bgcolor accept?

Boolean values

Image file paths

Named colors, hexadecimal codes, RGB, and RGBA values.

Integer values

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the background attribute?

To define the font style of an HTML element.

To set a background image or color for an HTML element.

To control the visibility of an HTML element.

To set the margin and padding of an HTML element.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the tag used for?

The tag is used to create hyperlinks.

The tag is used to add audio files.

The tag is used to define a table.

The tag is used to embed images in a webpage.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Name two attributes of the tag.

src, alt

width

title

href

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?