WorksheetsCISY1006 WDP
Total questions: 50
Worksheet time: 38mins
What does CSS stand for?
Creative Style sheet
Computer Style sheet
Cascading Style Sheet
Colorful Style Sheet
Select the option to make a list that lists the items with numbers?
ul
ol
dl
list
In CSS, choose the correct option to select this image by its id?
<img id=”mainpic” src=”cat.png”>
mainpic { }
#mainpic { }
img { }
.mainpic { }
Which HTML tag is used to define an internal style sheet?
<html>
<css>
<style>
<script>
Select the property that is used to create spacing between HTML elements?
padding
spacing
margin
border
Select the appropriate HTML tag for inserting a line break?
break
br
nl
line
Which property is used to change the background color?
bgcolor
background-color
color
Which one is the radio buttons?
A
B
The purple input type is a _______________.
Text field
Text area
Text box
Which CSS property is used to change the text color of an element?
color
text-color
font-color
Select the correct HTML for creating a hyperlink?
<a link="http://firstcity.edu.my">firstcity</a>
<a href="http://firstcity.edu.my">firstcity</a>
<a url="http://firstcity.edu.my">firstcity.edu.my</a>
Which property is used to change the font of an element?
font-style
font-face
font-family
Which CSS selector is used to target elements with a specific class?
.class
#class
.id
#id
What does the following CSS selector target: .box .content?
All elements with the class "box"
All elements with the class "content" inside an element with the class "box"
All elements with both the class "box" and the class "content"
All elements with the id "box" and the class "content"
How can you select an element with a specific ID in CSS?
.id
#id
id
@id
Which CSS selector targets all HTML elements of a specific type?
ID selector
Class selector
Universal selector
Element selector
What is the purpose of a CSS selector?
To apply styles to HTML elements
To create new HTML elements
To define JavaScript functions
To add interactivity to web pages
Which CSS property is used to change the color of text?
text-color
color
font-color
text-style
What is the purpose of the CSS box model?
To define the layout of a webpage
To define the size and spacing of elements on a webpage
To create borders around elements
To add shadows to elements
In CSS, which property is used to change the font size of an element?
font-size
text-size
size
font-style
Which HTML tag is used to create a paragraph?
<para>
<p>
<paragraph>
<pg>
Which CSS property is used to change the background image of an element?
background-image
image
bg-image
What is the correct HTML tag for creating a hyperlink that opens in a new tab?
<a href="http://example.com" target="_blank">Link</a>
<a href="http://example.com" target="_new">Link</a>
<a href="http://example.com" target="_tab">Link</a>
Which HTML tag is used to create a heading?
<h1>
<heading>
<head>
<title>
What is the correct way to comment in HTML?
<!-- This is a comment -->
// This is a comment //
/* This is a comment */
# This is a comment #
Which CSS property is used to set the text alignment of an element?
text-align
align-text
text-style
align
Which HTML tag is used to create a list item?
<li>
<ul>
<ol>
<list>
What is the correct way to include an external CSS file in HTML?
<link rel="stylesheet" type="text/css" href="styles.css">
<style src="styles.css">
<css src="styles.css">
<script src="styles.css">
How can you create a drop-down list (select box) in HTML?
<dropdown>
<list>
<select>
<option>
Which attribute of the <input> element is used to specify the type of input control?
type
control
text
input-type
Which HTML element is used to create a form?
<form>
<input>
<label>
<textarea>
When would you use the absolute value for the position property?
When you want to position an element relative to its normal position in the document flow
When you want to remove an element from the document flow
When you want to position an element relative to its closest positioned ancestor
When you want to position an element relative to the viewport
What is the purpose of the float property in CSS?
To move elements to the left or right, allowing text to wrap around them
To vertically center elements within their containers
To make elements completely invisible
To change the opacity of elements
What is the default position value for HTML elements?
relative
fixed
absolute
static
What CSS property is used to set the positioning scheme for an element?
layout
position
display
float
Which CSS property is used to add shadows to elements?
shadow
box-shadow
element-shadow
What is the purpose of the z-index property in CSS?
To change the font size of an element
To control the stacking order of elements
To change the background color of an element
What is missing from this HTML skeleton?
<!DOCTYPE html>
<html>
<body>
</body>
</html>
<head></head>
<div></div>
<img></img>
<head>
How can you center align text using CSS?
text-align: right;
text-align: center;
text-align: justify;
text-align: left;
What is the purpose of the <div> tag in HTML?
The purpose of the
The purpose of the
The purpose of the
The purpose of the
Which of these CSS rules would make all h1s and h2s red?
h1, h2
{color: red;}
h1 + h2
{color: red;}
h1 h2
{color: red}
h1 and h2
{color: red;}
How do you define a background color for all "p" tags in CSS?
p.all {background-color:red;}
-p {background-color:red;}
#p {background-color:red;}
p {background-color:red;}
What property is used to change the font of an element?
text-type
font-type
font-family
text-family
What is the pseudo-class used to detect when the mouse passes over an element?
:first-child
:link
:sobre
:hover
What is padding in CSS?
Padding allows an object to align to the right, left or centre
Padding is the type of colour that you can use
Padding is the space between the border of the object/element and the other element inside
What is a server?
It is a computer, that hears the client side device request, and generate a response to it.
It is the device we use to access the internet
Pictures of Cats
It is a cable that connects two or more computers
Why is it important to avoid repetitive code while creating a website?
Excessive code is harder to read and understand
It is easier to make edits to websites when CSS rules are strategically grouped and organized
It demonstrates good coding style
All are correct
Similar Resources on Wayground
52 questions
HPC 3 - Applied Business Tools and Technologies w/ Lab Midterm E
Worksheet
•
University
45 questions
UAS BSD 1
Worksheet
•
University
50 questions
Latihan UNBK TKJ 2019
Worksheet
•
10th Grade - University
52 questions
TKKP 7
Worksheet
•
5th Grade - University
50 questions
VOIP XII
Worksheet
•
1st Grade - University
53 questions
Lv4 City & Guilds Food Safety Quiz
Worksheet
•
10th Grade - University
50 questions
IP Address
Worksheet
•
University
50 questions
Digital Marketing Test 1
Worksheet
•
University
