Microsoft Exam Questions

You develop a webpage by using HTML5.

You develop a webpage by using HTML5.

The user interface of the webpage must show a gray-lined box that contains the label Enter your information:. Inside the box are two labels and two input boxes. The first input box must be labeled Name:. The second input box must be labeled Email:. Below the box is a Submit button.

The user interface must look like the following;



You need to create the user interface.

Which markup should you use?



A. Option A

B. Option B

C. Option C

D. Option D

Explanation:

* The

<

fieldset

>

tag is used to group related elements in a form.

The

<

fieldset

>

tag draws a box around the related elements.

The

<

legend

>

tag defines a caption for the

<

fieldset

>

element.

Example:

Group related elements in a form:

<

form

>

<

fieldset

>

<

legend

>

Personalia:

<

/legend

>

Name:

<

input type=-text-

><

br/

>

Email:

<

input type=-text-

><

br/

>

Date of birth:

<

input type=-text-/

>

<

/fieldset

>

<

/form

>

Reference: HTML

<

fieldset

>

Tag; HTML

<

legend

>

Tag