NEW
Font size
WorksheetsWeb development
Total questions: 20
Worksheet time: 10mins
What does HTML stand for?
Hyperlink and Text Markup Language
HyperText Markup Language
High-Level Text Markup Language
HyperTransfer Markup Language
Which language is used for styling web pages?
HTML
CSS
JavaScript
Python
What is the primary purpose of CSS?
Structure web content
Style web content
Create interactivity
Handle server-side operations
In CSS, how do you select an element by its class?
#
&
.
$
What is the role of JavaScript in web development?
a) Style the webpage
b) Define the webpage structure
c) Add interactivity and behavior to the webpage
d) Store data on the server
Which HTML tag is used to create a hyperlink?
a) <link>
b) <a>
c) <hyperlink>
d) <url>
What is the file extension for a Cascading Style Sheets (CSS) file?
a) .html
b) .css
c) .js
d) .txt
Which attribute is used to link an external CSS file to an HTML document?
a) link
b) style
c) css
d) script
What does DOM stand for in web development?
a) Document Object Model
b) Display Object Model
c) Document Object Method
d) Display Object Method
Which HTML tag is used to define the structure of an HTML document?
a) <html>
b) <body>
c) <structure>
d) <main>
What is the purpose of the <head> tag in HTML?
a) Defines the main content of the page
b) Contains metadata and links to external resources
c) Defines the page footer
d) Styles the content
What is the correct way to comment in HTML?
a) // This is a comment
b) <!-- This is a comment -->
c) /* This is a comment */
d) ' This is a comment '
Which CSS property is used to set the background color of an element?
a) background-color
b) color
c) background
d) bgcolor
What is the purpose of the float property in CSS?
a) Set the text alignment
b) Define the position of an element
c) Control the spacing between lines of text
d) Float an element to the left or right of its container
Which HTML tag is used to create an unordered list?
a) <ol>
b) <ul>
c) <li>
d) <list>
What is the role of media queries in CSS?
a) Define multimedia elements like images and videos
b) Change the layout and styles based on the device's characteristics
c) Specify font sizes and colors
d) Create interactive animations
Which attribute is used to define an image in HTML?
a) src
b) image
c) link
d) href
a) src
b) image
c) link
d) href
What does the "HTTP" acronym stand for in website URLs?
a) HyperText Transfer Protocol
b) HyperText Transfer Page
c) Hyperlink and Text Transfer Protocol
d) HyperText Transmission Protocol
What is the correct way to include an external JavaScript file in HTML?
a) <script src="script.js"></script>
b) <js src="script.js"></js>
c) <link src="script.js">
c) <link src="script.js"></link>
d) <script file="script.js"></script>
What is the correct way to center an element horizontally in CSS?
a) text-align: center;
b) align: center;
c) center: true;
d) justify-content: center;
