wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML Assessment 1

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What does HTML stands for ?

a)

Hyper Text Markup Language

b)

Hyper Tool Markup Language

c)

Hyperlink Text Markup Language

d)

Hypertext Transfer Markup Language

2.

Which of the following is not a Header Tag in HTML ?

a)

<h1>

b)

<h7>

c)

<h3>

d)

<h6>

3.

Which attribute is used to write an inline CSS style in HTML?

a)

Use the CSS attribute

b)

Use the style attribute

c)

Use the inline element

d)

None of these

4.

Which HTML Tag is used to connect to an external CSS file ?

a)

<connect>

b)

<link>

c)

<head>

d)

<html>

5.

Select the correct syntax for styling the body tag with background color as red?

a)

body {

background-color = red ;

}

b)

body {

background-color : red ;

}

c)

body {

color: red ;

}

d)

body {

color = red :

}

6.

Which of the following is true about the "id attribute" in a CSS file?

a)

The id attribute specifies a unique id for an HTML element.

b)

The syntax for id attribute is written using a hash character (#), followed by an id name.

c)

You cannot have more than one element with the same id in an HTML document.

d)

All of these

7.

What do you understand by the following values:

"2px" , " solid", "black" in the following line of code for adding border to any HTML element ?


border 2px solid black ;

a)

border-height, border-style, border-color

b)

border-width, border-style, border-color

c)

border-margin, border-style, border-color

d)

border-width, border-style, background-color

8.

Which of the following clearly spot the difference between CSS property "padding" and "margin" ?

a)

Margin is said to be the outer space of an element, while Padding is said to be the inner space of an element

b)

Padding provides the space outside the border, while Margin provides the space within the border.

c)

Padding is said to be the outer space of an element, while is Margin said to be the inner space of an element

d)

None of these

9.

Which of the following tag defines a hyperlink, which is used to link from one page to another?

a)

<head>

b)

<nav>

c)

<link>

d)

<a>

10.

How many rows and columns does the table shown in the code snippet contain?

a)

2 rows with 6 columns each

b)

3 rows with 2 columns each.

c)

2 rows with 3 columns each.

d)

3 rows with 3 columns each.