wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Chapter 8 html

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.

What does HTML stand for?

a)

High Text Markup Language

b)

Hyper Text Markup Language

c)

Hyperlinks and Text Markup Language

d)

Home Tool Markup Language

2.

What is the primary purpose of HTML?

a)

To calculate mathematical formulas.

b)

To tell a computer how to display a web page using tags.

c)

To create complex database systems.

d)

To edit photos and videos.

3.

Which file extension must an HTML file have?

a)

.txt or .doc

b)

.ppt or .pptx

c)

.htm or .html

d)

.css or .xml

4.

Which software application is used to read HTML documents and display them?

a)

Word Processor (e.g., Microsoft Word)

b)

Web Browser (e.g., Chrome, Edge, Safari)

c)

Database Management System (e.g., Access)

d)

Spreadsheet (e.g., Excel)

5.

What is the recommended encoding format when saving an HTML file in Notepad?

a)

ANSI

b)

Unicode

c)

UTF-8

d)

ASCII

6.

Which of the following is an example of an advanced HTML editor?

a)

Microsoft Word

b)

Adobe Dreamweaver

c)

Microsoft Excel

d)

Paint

7.

What is the correct sequence of tags for a basic HTML document structure?

a)

<html> <head> <title> ... </title> </head> <body> ... </body> </html> 

b)

<head> <html> <body> ... </body> </html> </head> 

c)

<body> <head> <title> ... </title> </head> </html> 

d)

<html> <body> <head> ... </head> </body> </html>

8.

Which HTML element is considered the "root" element of an HTML page?

a)

<head> 

b)

<body> 

c)

<html> 

d)

<title>

9.

Which section of an HTML document contains the visible page content?

a)

<head>

b)

<title>

c)

<body>

d)

<html>

10.

In the HTML structure, where should the <title> element be nested?

a)

Inside the section.

b)

Inside the section.

c)

After the tag.

d)

Before the tag.

11.

Which tag contains meta information about the document, such as the title?

a)

<body>

b)

<head>

c)

<h1>

d)

<p>

12.

What is the correct rule for "Nested Tags"?

a)

You can close tags in any order.

b)

You must close the nearest tag first (Last In, First Out).

c)

You only need to close the first tag.

d)

Nested tags do not need closing tags.

13.

Which tag is used to define a heading?

a)

<head>

b)

<header>

c)

<h1>

d)

<h>

14.

Which tag is used to create a paragraph?

a)

<para>

b)

<p>

c)

<text>

d)

<br>

15.

Which of the following tags is an "empty element" that does NOT require a closing tag?

a)

<p>

b)

<h1>

c)

<br>

d)

<div>

16.

To create bold text, which tag should be used?

a)

<strong> or <b>

b)

<bold>

c)

<big>

d)

<em>

17.

The <strong> tag is similar to the <b> tag because it:

a)

Makes the contained text italic.

b)

Creates a hyperlink.

c)

Makes the contained text bold.

d)

Underlines the text.

18.

Which HTML tag is used to define a container for a block of content (often used for layout)?

a)

<span>

b)

<div>

c)

<section>

d)

<block>

19.

Which tag is used as a container for in-line content, such as styling a specific part of a text inside a paragraph?

a)

<div>

b)

<table>

c)

<span>

d)

<line>

20.

Which attribute is used within the tag to change the background color of a webpage?

a)

color

b)

background

c)

bgcolor

d)

backcolor

21.

Which tag is used to create a bulleted list?

a)

<list>

b)

<bl>

c)
  • <li>

d)

<bl>

22.

Which tag is used to define an item within a list (e.g., Apple, Orange)?

a)

<ul>

b)

<ol>

c)

<list>

d)

<li>

23.

Which tag is used to insert an image into a webpage?

a)

<image>

b)

<pic>

c)

<img>

d)

<src>

24.

Which attribute in the tag specifies the path or filename of the image to be displayed?

a)

href

b)

link

c)

src

d)

path

25.

The <img> tag is unique because:

a)

It must appear in the section.

b)

It contains attributes only and has no closing tag.

c)

It cannot be resized.

d)

It only works with GIF files.

Which attribute in the

tag controls the space between cells?

a)

cellpadding

b)

cellspacing

c)

border

d)

width

31.

<table border=1> creates a table with:

a)

A visible border around the table and cells.

b)

No border.

c)

A border color of red.

d)

One single cell.

32.

What does CSS stand for?

a)

Computer Style Sheets

b)

Creative Style System

c)

Cascading Style Sheets

d)

Colorful Style Sheets

33.

In the CSS rule h1 { color:blue; font-size:12px; }, what is h1 called?

a)

Declaration

b)

Selector

c)

Property

d)

Value

34.

In CSS syntax h1 { color:blue; }, what is color?

a)

The Selector

b)

The Value

c)

The Property

d)

The Tag

35.

In CSS syntax h1 { color:blue; }, what is blue?

a)

The Selector

b)

The Property

c)

The Value

d)

The HTML

36.

When writing a CSS rule, the "Declaration Block" is surrounded by which characters?

a)

Square brackets [ ]

b)

Parentheses ( )

c)

Curly braces { }

d)

Angle brackets < >

37.

Which punctuation mark is used to separate a Property from a Value in CSS (e.g., color __ blue)?

a)

Semicolon (;)

b)

Comma (,)

c)

Colon (:)

d)

Equal sign (=)

38.

Every CSS declaration (e.g., color:blue) must end with which character?

a)

Period (.)

b)

Semicolon (;)

c)

Colon (:)

d)

Slash (/)

39.

Which of the following is NOT a valid way to insert CSS into an HTML document?

a)

Inline (using a style attribute)

b)

Internal (using a style section)

c)

External (using a CSS file)

d)

Outline (using a separate Word document)

40.

Which method of inserting CSS involves using a separate file (e.g., style.css)?

a)

Inline

b)

Internal

c)

Outline

d)

External