wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

Which of the following HTML5 elements is specifically designed to contain content that is a self-contained composition and could be distributed independently, such as a blog post or a newspaper article?

a)

article

b)

section

c)

main

d)

aside

2.

In HTML5, which attribute is used to provide a default value for a text input field in a form?

a)

default

b)

initial

c)

value

d)

placeholder

3.

Which attribute on an <a> element specifies that the target URL should be downloaded rather than navigated to

a)

href

b)

downlaod

c)

target="_blank"

d)

type

4.

What is the correct way to add a row that spans multiple columns in an HTML table?

a)

<td rowspan="n">

b)

<td colspan="n">

c)

<tr colspan="n">

d)

<tr rowspan="n">

5.

Which HTML tag is used to create a definition list, where each term is defined?

a)

<dl>

b)

<li>

c)

<ol>

d)

<ul>

6.

In an HTML form, what is the purpose of the 'action' attribute?

a)

It specifies a name for the form that is used for scripting.

b)

It specifies the HTTP method (e.g., GET or POST) to be used when submitting the form.

c)

It specifies a unique identifier for the form.

d)

It specifies where to send the form data when the form is submitted.

7.

In the context of HTML tables, what is the purpose of the <thead> element?

a)

It provides a caption for the entire table.

b)

It groups the header content in a table.

c)

It defines the main body of the table.

d)

It defines a cell that contains header information.

8.

Which of the following is an example of a block-level HTML element?

a)

<a>

b)

<span>

c)

<strong>

d)

<div>

9.

What is the purpose of the 'type' attribute on an <input> tag?

a)

It specifies the name of the input field to be used when submitting the form.

b)

It specifies a default value for the input field.

c)

It specifies the type of data the user can enter, such as text, password, or number.

d)

It defines the unique identifier for the input element.

10.

Which of the following HTML tags is used to create a multiple-line text input control?

a)

<textarea>

b)

<input type="text" rows="5">

c)

<textbox>

d)

<input type="textarea">