Font size
WorksheetsHTML CSS2025
Total questions: 43
Worksheet time: 30mins
The first web browser developed by Tim Berners-Lee was called (a) .
The “Web 2.0” era is characterized mainly by:
Which of the following best describes Web 3.0?
A webpage is best described as:
A web application differs from a static website because it _____.
The correct syntax for declaring a DOCTYPE in HTML5 is:
<!DOCTYPE html>
<doctype html>
<!DOCTYPE HTML>
<DOCTYPE html>
HTML stands for (a) .
Which tag defines the main content of an HTML document?
<main>
<section>
<body>
<div>
Semantic HTML refers to:
Which HTML element is best used for navigation links?
<div>
<header>
<section>
<nav>
The <iframe> element is used to _____.
CSS stands for (a) .
Which CSS property changes the text color?
(a)
Which selector targets all <p> elements in a document?
.p
#p
paragraph
Inline CSS is defined using which attribute?
(a)
The CSS position: absolute; positions an element relative to _____.
The browser window
Its nearest positioned ancestor
The parent container only
The <body> element
The Flexbox model is mainly used for _____.
The main axis in a flex container is controlled by the property _____.
CSS Grid is mainly used to _____
The CSS property grid-template-columns defines _____.
Identify the correct structure of an HTML document:
<html>
<head>
<title></title>
<body></body></head>
</html>
<html>
<body>
<head></head></body>
</html>
<html>
<head></head>
<body></body>
</html>
<html>
<meta></meta>
<body></body>
</html>
To create a link to another webpage, we use the <a> tag with the attribute (a) .
Which of the following correctly embeds an external CSS file?
<style src="style.css">
<link rel="stylesheet" href="style.css">
<script src="style.css">
<css href="style.css">
The <header> and <footer> elements belong to (a) HTML.
The <iframe> tag can be used to embed:
HTML documents or other web pages
Video files
Local CSS files
Which CSS selector will style all elements with the class name “box”?
Which positioning method allows elements to scroll with the page until a specific position is reached?
To make a container a flex container, we use:
In Flexbox, to center an item horizontally, use:
In Grid, to merge multiple columns into one area, use the property (a) .
Web 1.0 is often referred to as the (a) web.
Identify which example represents a web application:
Tutorial page
The HTML5 tag <article> is used for _____.
To position an element 20px from the top and 10px from the left using CSS absolute positioning:
position: absolute;
____: 20px;
____: 10px;
(a)
The CSS rule to create a grid with 3 equal columns:
(a)
To apply CSS only to <p> tags inside a <div> element:
(a)
Which Flexbox property reverses the direction of items in a row?
(a)
In Grid, justify-items: center; aligns items (a) .
Which property makes an element fixed at the top of the page even when scrolling?
(a)
The CSS selector p.intro targets:
All
paragraphs with the class 'intro'
elements regardless of class
Only
elements with the id 'intro'
All
paragraph without any class
Provide a CSS declaration that creates a responsive image.
Evaluate: Which layout model is better for one-dimensional layouts?
(a)
Identify one difference between relative and absolute positioning in CSS.
relative positions an element relative to itself; absolute positions it relative to its nearest positioned ancestor
