wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Forms in HTML

Total questions: 21

Worksheet time: 11mins

Name
Class
Date
1.

Which HTML attribute would be used to span a table cell over more than one row?

a)

span

b)

row

c)

colspan

d)

rowspan

2.

Which HTML code will display a radio button?

a)

<radio>

b)

<input type="radiobutton">

c)

<radiobutton>

d)

<input type="radio">

3.

Which HTML element defines an article?

a)

<document>

b)

<content>

c)

<section>

d)

<article>

4.

Which input type allows multiple options to be selected?

a)

textbox

b)

textarea

c)

checkbox

d)

radio

5.

Which element defines a caption for a table, and where should it be placed?

a)

<thead>, placed after the <table> tag

b)

<thead>, placed right before the <table> tag

c)

<caption>, placed after the <table> tag

d)

<caption>, placed before the <table> tag

6.

Which attribute is used to specify that an input field must be filled out?

a)

placeholder

b)

validate

c)

required

d)

formvalidate

7.

Which elements are used to draw a border with a caption around some content?

a)

<border> and <caption>

b)

<fieldset> and <legend>

c)

<fieldset> and <caption>

d)

<border> and <legend>

8.

Which input type defines a month and year control?

a)

date

b)

year

c)

month

9.

What does the action attribute in the <form> element define?

a)

Where to send the form data when submitted

b)

The HTTP method for sending the form data

c)

The mime type used to encode the content.

d)

Where to open the target URL

10.

To create a password field on a form, which code below would define a password field?

a)

<text type="password">

b)

<input type="password">

c)

<password>

11.

Which defines a text-area?

a)

<input type="multiline">

b)

<input type="textarea">

c)

<textarea>

d)

<textfield>

12.

Which elements are used to create a drop-down list?

a)

<input type="select"> and <option>

b)

<input type="dropdown"> and <li>

c)

<ol> and <li>

d)

<select> and <option>

13.

Which of the following defines a text field?

a)

<text type="input">

b)

<input type="input">

c)

<input type="text">

d)

<textfield>

14.

To span text in a table cell over more than one column, which HTML attribute would you use?

a)

col

b)

row

c)

span

d)

colspan

15.

Which elements define a table, a table row, and a standard table cell?

a)

<table>, <tr>, <th>

b)

<table>, <tr>, <tc>

c)

<table>, <tr>, <td>

16.

Which input type defines a field that should contain an e-mail address?

a)

e-mail

b)

mail

c)

mailto

d)

email

17.

Which defines a checkbox?

a)

<input type="check">

b)

<check>

c)

<checkbox>

d)

<input type="checkbox">

18.

Which input type defines a slider control?

a)

controls

b)

search

c)

range

d)

slider

19.

Which attribute defines the way to send form data to the action URL?

a)

formnovalidate

b)

formmethod

c)

formdata

20.

The only way to nest one form into another form is to use the <iframe> element?

a)

True

b)

False

21.

Can a table be nested inside another table?

a)

Yes

b)

No