Search Header Logo
Year 9 Revision

Year 9 Revision

Assessment

Presentation

Computers

9th Grade

Practice Problem

Medium

Created by

Hira manzoor

Used 2+ times

FREE Resource

28 Slides • 29 Questions

1

media

2

Multiple Choice

1. What is the purpose of HTML?

1

To style web pages

2

To create the structure and content of web pages

3

To add interactivity to web pages

4

To store data for web pages

3

Multiple Choice

2. Which element is the root element of an HTML page?

1

<head>

2

<body>

3

<html>

4

<title>

4

Multiple Choice

3. What does the <head> element contain?

1

The visible content of the webpage

2

Meta information about the HTML page

3

The title of the webpage

4

Both b and c

5

Multiple Choice

4. What does the <body> element contain?

1

Meta information about the webpage

2

The title of the webpage

3

All the visible content of the webpage

4

The structure of the webpage

6

Open Ended

What does the <!DOCTYPE html> declaration do?

7

media

8

media

9

media

10

Multiple Choice

What is the first step to create an HTML file using a text editor?

1

Write CSS code

2

Open a web browser

3

Open a text editor like Notepad

4

Download an image

11

Multiple Choice

Which of the following is a simple text editor that can be used to write HTML code?

1

Photoshop

2

Notepad

3

Microsoft Excel

4

Google Chrome

12

Multiple Choice

What should you do after writing HTML code in a text editor?

1

Print the file

2

Save the file with a .html extension

3

Delete the file

4

Share it on social media

13

Multiple Choice

How can you view the HTML file you created in a text editor?

1

Open it in a web browser

2

Open it in Microsoft Word

3

Print it on paper

4

Email it to someone

14

media

15

media

16

media

17

media

18

Multiple Choice

1.What is the correct HTML tag for creating a hyperlink?

1

<link>

2

<a>

3

<href>

4

<url>

19

Multiple Choice

Which attribute is required for an image to display in HTML?

1

href

2

alt

3

src

4

title

20

Multiple Choice

3. What will happen if the href attribute is missing in an <a> tag?

1

The link will not work

2

The link will open the homepage

3

The link will display an error message

4

The link will open a blank page

21

Multiple Choice

 What is the purpose of the alt attribute in an <img> tag?

1

It adds a caption to the image

2

It provides a description if the image doesn’t load

3

It resizes the image

4

It makes the image a hyperlink

22

media

23

media

24

media

25

Multiple Choice

What is the correct structure of an HTML element?

1

<start tag> content <end tag>

2

<start tag> <end tag> content

3

<content> start tag end tag

4

<start tag> <content>

26

Multiple Choice

Which of the following is an empty element in HTML?

1

<h1>

2

<p>

3

<br>

4

<body>

27

Multiple Choice

What happens if you forget to close an HTML element like <p>?

1

The browser will show an error message.

2

The browser may still display the content, but the page structure could break.

3

The browser will automatically fix it and add the missing tag.

4

The entire webpage will stop working.

28

Multiple Choice

Which of the following is a correctly nested HTML structure?

1

<p> <h1>Title</h1> </p>

2

<html> <body> <h1>Heading</h1> </body> </html>

3

<html> <h1>Heading</h1> <body></body> </html>

4

<body> <html> <p>Text</p> </html> </body>

29

media

30

media

31

media

32

media

33

media

34

media

35

media

36

media

37

Multiple Choice

Which attribute is used to specify the URL for a hyperlink (<a> tag)?

1

Src

2

href

3

alt

4

title

38

Multiple Choice

What is the purpose of the alt attribute in an <img> tag?

1

To set the image size

2

To provide alternative text if the image fails to load

3

To add a border to the image

4

To change the background color of the image

39

Multiple Choice

Which attribute is used to change the text color and font size inside an HTML element?

1

style

2

class

3

title

4

id

40

Multiple Choice

What will happen if you hover over a heading with a title attribute?

1

The text color will change

2

A small tooltip will appear with the title's content

3

The heading will become bold

4

Nothing will happen

41

media

42

media

43

media

44

media

45

Multiple Choice

Which HTML attribute is used to apply inline styles to an element?

1

class

2

id

3

style

4

href

46

Multiple Choice

What does the following code do?

<p style="color: red; font-size: 20px;">Hello World</p>

1

Changes the font size to 20px and sets the text color to red.

2

Changes the background color to red.

3

Adds a border around the text.

4

Sets the text to bold.

47

Multiple Choice

3. True or False: The background-color property is used to change the text color in HTML.

1

True

2

False

48

Multiple Choice

How do you change the background color of an entire webpage in HTML?

1

Use the background-color property in the <body> tag.

2

Use the font-color property.

3

Use the style attribute in the <p> tag.

4

Change the text-color in the <head> section.

49

media

50

media

51

media

52

media

53

Multiple Choice

Which HTML tag makes text bold?

1

<i>

2

<strong>

3

<mark>

4

<small>

54

Multiple Choice

What is the purpose of the <ins> tag?

1

To indicate deleted text

2

To highlight text

3

To show inserted text

4

To make text italic

55

Multiple Choice

How does <sub> affect text display?

1

Makes text smaller

2

Raises text above normal line

3

Lowers text below normal line

4

Highlights text in yellow

56

Multiple Choice

Which tag is best for marking important text?

1

<b>

2

<em>

3

<del>

4

<strong>

57

media
media

Show answer

Auto Play

Slide 1 / 57

SLIDE