wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

WEBDEV101

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is the purpose of the <!DOCTYPE html> declaration in an HTML document?

a)

It defines the structure of the document

b)

It links to an external stylesheet

c)

It tells the browser the document type and HTML version

2.

Which tags mark the beginning and the end of an HTML document?

a)

<body> </body>

b)

<html> </html>

c)

<p> </p>

3.

Which tag is used to define a paragraph in HTML?

a)

<p>

b)

<body>

c)

<html>

4.

Which type of CSS is applied directly within HTML elements using the style attribute?

a)

External CSS

b)

Inline CSS

c)

Embedded CSS

5.

Which part of a CSS rule defines the style you want to apply to an element, such as "color" or "font-size"?

a)

Selector

b)

Declaration block

c)

Property

6.

What is the correct syntax for linking an external CSS file in an HTML document?

a)

<style src="style.css">

b)

<css link="style.css">

c)

<link rel="stylesheet" href="style.css">

7.

How do you create a new database in MySQL?

a)

CREATE DATABASE database_name;

b)

NEW DATABASE database_name;

c)

MAKE DATABASE database_name;

8.

How can you delete an entire table from a MySQL database?

a)

DELETE FROM table_name;

b)

DROP TABLE table_name;

c)

REMOVE table_name;

9.

What is the correct syntax to display "Hello, World!" in PHP?

a)

echo "Hello, World!";

b)

display("Hello, World!");

c)

printf("Hello, World!");

10.

Which of the following is a correct file extension for PHP scripts?

a)

.html

b)

.php

c)

.py