Font size
WorksheetsHTML-CSS
Total questions: 114
Worksheet time: 21mins
HTML is what type of language ?
Scripting Language
Markup Language
Network Protocol
Programming Language
Apart from <b> tag, what other tag makes text bold ?
<fat>
<emp>
<black>
<strong>
What tag is used to display a picture in a HTML page?
picture
src
img
image
Which HTML tag produces the biggest heading?
<h7>
<h5>
<h3>
<h1>
What is the correct syntax to change the background color with css?
background-color: purple;
background-color = "purple";
backgroundcolor=orange
change-background-color: purple
TRUE OR FALSE: HTML is used to style web pages.
True
False
What is missing from this HTML skeleton?
<!DOCTYPE html>
<html>
<body>
</body>
</html>
<head></head>
<div></div>
<img></img>
<head>
TRUE OR FALSE: CSS is used to style web pages
True
False
A ___________ is an icon, graphic, or text that links to another file or object. These are what allow web pages to connect to other web pages
hyperlink
HTML Tags
browser
<br>
What is the correct way to write a comment in HTML?
/* comment */
<!– comment –>
ctrl + Ç
<¡– comment –>
What is the correct way to write a link in HTML?
<link href=”#”>…<link>
<a title=”#”>…</>
<a src=”#”>…</a>
<a href=”#”>…</a>
What does CSS mean?
Cascading Style Sheets
Center Style Steels
Calibre Style Sheet
No answer is correct
What is the correct order of the opening tags for a basic web structure?
<body>, <head>, <html>
<html>, <body>, <head>
<html>, <head>, <body>
<head>, <body>, <html>
td
one cell in a header
one column of a row
one row of a column
one data cell in a row
Which tag does not need a closing tag?
<a href>
<head>
<body>
<img src>
<th></th> is the code for .....
a table row
a table column
a table header
Thanos
sets the color of words in a paragraph
h1 {
color: pink;
}
img {
color: pink;
}
body {
color: pink;
}
p {
color: pink;
}
What does a class do?
adds color to words
adds style to specific elements
adds style to a whole page
adds a lot more work
Which rule set would change the font size to 24?
font-size: 24
size: 24;
font-size: 24;
font size: 24;
Which is correct CSS syntax?
{body; colour = black;}
body: colour = black
body {
colour : black;}
{body colour is black}
Select the tags below:
<body>
/body
<p>
img
What language is used to define the structure of a webpage?
HTML
JavaScript
CSS
French
What language is used to add style to a webpage?
HTML
JavaScript
CSS
French
What tag do you use to create a numbered list?
<list>
<ol>
<li>
<ul>
Which sets the colour of words in a paragraph
h1 {
colour: pink }
img {
colour: pink }
p {
colour: pink }
p {
color: pink }
Select the rule to make all the text in your web page blue and centered.
p {
colour: blue; }
body {
text-align: left;
colour: blue; }
p {
text-align: center
color: blue; }
body {
text-align: center
color: blue; }
What is the selector for a link?
a { }
link { }
href { }
a href { }
Annie wants the name of her product to be the main heading at the top of her webpage. Which tage defines the main heading in a web documnets?
<h3>Product<h3>
<h5>Product<h5>
<h1>Product<h1>
<h6>Product<h6>
Name an element which does not have a closing tag.
<img>
<head>
<body>
<p>
What symbol should you use to target an id in css?
.
+
id
#
What is the HTML tag that creates a heading cell in a table?
Write an appropriate CSS selector that enables CSS rule to be applied on both paragraphs and images.
What is the type of element that does not start on a new line and it only takes up as much width as necessary.
Write an appropriate HTML code that will insert/display an image called "Bahrain.png" in a webpage.
Which type of CSS style posses the highest priority?
What does HTML stand for??
Home Training Metric Length
Homogenous Technical Support
Hype Tense Microsoft Level
Hyper Text Markup Language
Which set contains all of the DEFAULT tags needed to create a webpage?
<!DOCTYPE html>
<html>
<head>
</head>
<body>
</body>
</html>
<html>
<head>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
</body>
Which of the tag is used to create a numbered list?
<L> </L>
<LI> </LI>
<li> </lo>
<ol> </ol>
Choose the correct HTML element for the largest heading:
<head>
<h1>
<heading>
<h6>
HTML controls the _________ of a webpage.
feel
precision
structure
style
<p> is the opening tag for a _____________
page
paragraph
preorder
period
What is the correct syntax for defining a hyperlink in HTML?
<a href=”url”> Link text </a>
<a href=”url”> Link text <a>
<a=”url”> Link text <a>
<ref=”url”> Link text <a>
Which of the following codes would create a horizontal line
<br>
<h1></h1>
<hr>
<p>
You need a closing tag for an image without text
True
False
src attribute and then displays it.The select field in a form
is used inside an input element.
provides users with a set of options to choose from.
auto-completes as the user types data.
cannot have a default option setting.
To help users know what to put in field, use
<input name="firstname">
<label for="firstname">
<input type="text" id="firstname>
<input type="text" id="firstname" name="label">
<input label="First Name" type="text">
Which of the following is the correct way to add an attribute?
<src>
classes:ids
id="title"
<id>
What is missing from this HTML skeleton?
<!DOCTYPE html>
<html>
<body>
</body>
</html>
<head></head>
<div></div>
<img></img>
<head>
How do you change the font color with CSS?
font-color: green;
color: green;
change-font-color: green;
fontcolor=green;
What symbol should you use to target an id in css?
.
+
id
#
What is the correct syntax to change the background color with css?
background-color: purple;
background-color = "purple";
backgroundcolor=orange
change-background-color: purple
What tag do you use to make a numbered list?
<list>
<ol>
<li>
<ul>
To Write A HTML File, which tag will we use?
<<html>>
<html>
<!html>
<--!html-->
TRUE OR FALSE: HTML is used to add content to web pages.
True
False
A __________ is a protection for any published work that helps to prevent that work from being used without prior authorization.
Firewall
HTML
Copyright
CSS Declaration
Which tag is used to add an image?
<image>
<img>
<<img>>
</image>
Where should you put the link tag to connect your CSS and HTML file?
Between the <head> </head> in HTML
Between the <body> </body> in HTML
None of the above.
A ___________ is an icon, graphic, or text that links to another file or object. These are what allow web pages to connect to other web pages
hyperlink
HTML Tags
browser
<br>
p {color: red;}
/* This is a multi-line comment */
p {color: red;}
What does HTML stand for?
HyperText Multi Language
HighText Markup Language
HyperText Markup List
HyperText Markup Language
Which tag is used to create a hyperlink in HTML?
a
link
meta
src
What is the purpose of the main tag in an HTML document?
The
tag contains the visible text for users.The
tag is used to display the main content of the page.The
tag is for defining the layout of the webpage.The
tag is used to contain meta-information about the HTML document.Which HTML element is used to define an unordered list?
ol
dl
ul
al
What is the correct HTML element for inserting a line break?
br
hr
ar
lb
Which attribute is used to specify the destination of a link?
src
link
href
target
What does CSS stand for?
Cascading Style Sheets
Creative Style Sheets
Cascading Style System
Computer Style Sheets
Which CSS property is used to change the text color?
color
text-color
background-color
font-color
What is the syntax for selecting an element with a class in CSS?
.className
class .className
className()
#className
What is the purpose of the input element in HTML?
The
The
The
The
Which input type is used for a password field in HTML forms?
text
password
number
What is the difference between "p"
and "span" in HTML?
What does semantic HTML mean?
Semantic HTML is HTML that is only used for styling.
Semantic HTML is a programming language for web development.
Semantic HTML is HTML that uses meaningful tags to describe the content.
Semantic HTML is HTML that only uses div tags.
Which HTML element is used to define a table?
excel
table
group
tab
What is the purpose of the
To create a new form input element.
To style the form input elements.
To associate a text label with a form input element.
To validate the form input data.
How do you apply an external CSS stylesheet to an HTML document?
using link element
style tag
html styles
What is the default display value of 'a' element?
inline
block
grid
flex
Which CSS property is used to set the spacing between elements?
padding
display
margin
border
What is the purpose of the tag in the
section?To define the style of the document.
To link external CSS files.
To provide metadata about the HTML document.
To specify the title of the document.
Which HTML element is used to define a form?
fieldset
input
section
form
How is document type initialized in HTML5?
</DOCTYPE HTML>
</DOCTYPE>
<!DOCTYPE HTML>
</DOCTYPE html>
Which of the following HTML Elements is used for making any text bold ?
<p>
<li>
<i>
<b>
Which of the following HTML element is used for creating an unordered list?
<ui>
<i>
<em>
<ul>
What is an element that does not have a closing tag called?
Tag
Empty element
Closed element
<th> </th> is the code for .....
a table row
a table column
a table header
unordered list
What does CSS stand for?
Creative Style Sheets
Cascading Style Sheets
Colorful Style Spread
Computer Style Spread
Which class provides a responsive fixed width container?
.container-fixed
.container
.container-fluid
None of above
Bootstrap is mobile first.
True
False
Maybe
Some may agree
How do you write "Hello World" in an alert box?
msg("Hello World");
alertBox("Hello World");
alert("Hello World");
msgBox("Hello World");
The ____________ are used to create space around elements, outside of any defined borders.
Margin
Padding
Border
Border Model
Similar Resources on Wayground
110 questions
CSE2SAD QUIZ
Worksheet
•
University
112 questions
ark survival evolved
Worksheet
•
5th Grade - Professio...
110 questions
Simulasi CAT 1
Worksheet
•
8th Grade - University
115 questions
React-Test
Worksheet
•
University
110 questions
220-1001 Super Test Final
Worksheet
•
University
112 questions
Windows 10 Quiz
Worksheet
•
University
112 questions
Programozási nyelvek vizsga
Worksheet
•
University
111 questions
CPP Midterm
Worksheet
•
University
