21

How can you create a hyperlink to an email address?

A.
B.
C.
D.
Answer & Solution
Solution:

The mailto: protocol is used to create hyperlinks that open the default email client to send an email.

22

Which tag is used to define the body of an HTML document?

A.
B.
C.
D.
Answer & Solution
Solution:

The <body> tag contains the main content of the HTML document.

23

Which tag is used to define the text for a label element in a form?

A.
B.
C.
D.
Answer & Solution
Solution:

The <label> tag is used to define labels for form input elements.

24

Which attribute is used to make a form input element required?

A.
B.
C.
D.
Answer & Solution
Solution:

The required attribute makes a form input element mandatory, so the form cannot be submitted without filling it.

25

What does the <hr> tag create in HTML?

A.
B.
C.
D.
Answer & Solution
Solution:

The <hr> tag creates a horizontal rule (line) to visually separate sections of a page.

26

Which HTML tag is used to define a container for content that should be displayed as a block-level element?

A.
B.
C.
D.
Answer & Solution
Solution:

The <div> tag is a block-level element used to group content together.

27

What is the default alignment for text in a paragraph (<p>) element?

A.
B.
C.
D.
Answer & Solution
Solution:

By default, text inside a <p> tag is aligned to the left.

28

Which HTML tag is used to create an ordered list?

A.
B.
C.
D.
Answer & Solution
Solution:

The <ol> tag is used to create an ordered list, with each item being numbered automatically.

29

Which HTML tag is used to define a table row?

A.
B.
C.
D.
Answer & Solution
Solution:

The <tr> tag is used to define a row in a table.

30

Which of the following is used to create a text input box in HTML?

A.
B.
C.
D.
Answer & Solution
Solution:

The <input> tag is used to create text input boxes, among other types of input elements.