HTML & CSS Practice Test 1

HTML & CSS Practice Test 1

12th Grade

60 Qs

quiz-placeholder

Similar activities

CSS Quiz

CSS Quiz

9th - 12th Grade

65 Qs

PAS PWPB RPL 12

PAS PWPB RPL 12

12th Grade

55 Qs

ujian Sekolah

ujian Sekolah

12th Grade

60 Qs

HTML Basics

HTML Basics

11th - 12th Grade

55 Qs

HTML

HTML

9th - 12th Grade

65 Qs

HTML, CSS, and Design

HTML, CSS, and Design

6th - 12th Grade

59 Qs

4th Six Weeks Review

4th Six Weeks Review

9th - 12th Grade

56 Qs

MDEXM WD

MDEXM WD

12th Grade

60 Qs

HTML & CSS Practice Test 1

HTML & CSS Practice Test 1

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Mr Gabriel

Used 32+ times

FREE Resource

60 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best explains the importance of including a proper DOCTYPE declaration in an HTML document?

It ensures compatibility with all web hosting servers.

It's required to make the website searchable on search engines.

It guarantees that embedded videos and audios will play correctly.

It provides a standard to which the document will be validated.

It optimizes the document for mobile viewing.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'viewport' meta tag primarily influence?

The font size of the text.

The background color of the webpage.

How the document is scaled and displayed on different devices.

The security protocols for the page.

The loading speed of the page.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a feature introduced in HTML 5 that enhances its relationship with web browsers?

Canvas element for drawing graphics

Local storage for saving data on users' devices

A new set of semantic elements

Built-in video and audio playback functionalities

A tool for automatic website translation

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary function of the <head> tag in an HTML document?

Display main content to users.

Contain metadata and links to stylesheets or scripts.


Structure the body content of the document.


Display the document's footer.

Render images in the browser.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where should the DOCTYPE declaration be positioned within an HTML document?

Inside the <body> tag.


Immediately following the <head> tag.

At the very end of the document.

At the beginning of the document, before the <html> tag.

Directly before the closing </html> tag.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you want a hyperlink to open in a new browser tab or window, which attribute value would you use for the target attribute?

_self

_parent

_top

_new

_blank

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which attribute is commonly used in the <a> tag to specify the URL the link points to?

link

source

ref

href


url

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?