WorksheetsWEBDEV101
Total questions: 10
Worksheet time: 5mins
What is the purpose of the <!DOCTYPE html> declaration in an HTML document?
It defines the structure of the document
It links to an external stylesheet
It tells the browser the document type and HTML version
Which tags mark the beginning and the end of an HTML document?
<body> </body>
<html> </html>
<p> </p>
Which tag is used to define a paragraph in HTML?
<p>
<body>
<html>
Which type of CSS is applied directly within HTML elements using the style attribute?
External CSS
Inline CSS
Embedded CSS
Which part of a CSS rule defines the style you want to apply to an element, such as "color" or "font-size"?
Selector
Declaration block
Property
What is the correct syntax for linking an external CSS file in an HTML document?
<style src="style.css">
<css link="style.css">
<link rel="stylesheet" href="style.css">
How do you create a new database in MySQL?
CREATE DATABASE database_name;
NEW DATABASE database_name;
MAKE DATABASE database_name;
How can you delete an entire table from a MySQL database?
DELETE FROM table_name;
DROP TABLE table_name;
REMOVE table_name;
What is the correct syntax to display "Hello, World!" in PHP?
echo "Hello, World!";
display("Hello, World!");
printf("Hello, World!");
Which of the following is a correct file extension for PHP scripts?
.html
.php
.py
