Font size
WorksheetsHTML and CSS
Total questions: 50
Worksheet time: 23mins
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;
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 { }
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 are the three types of style sheet
Internal, external, inline
Inline, internal, extreme
Insidious, internal, external
None of the above
When you use class selector
What should present infront of classname
#
&
@
.
If we want define style for an unique element, then which css selector will we use ?
Id
element
class
child
Can we align a Block element by setting the left and right margins ?
Yes
Not possible
If we want to wrap a block of text around an image, which css property will we use ?
wrap
push
float
align
Which css property you will use if you want to add some margin between a DIV's border and its inner text ?
spacing
margin
padding
inner-margin
The default value of "position" attribute is _________.
fixed
absolute
sticky
relative
How will you make all paragraph elements 'RED' in color ?
.p.all {color: red;}
.* {color: #990000;}
all.p {color: #998877;}
p {color: red;}
By default Hyperlinks are displayed with an underline. How do you remove the underline from all hyperlinks by using CSS code ?
a {text: no-underline;}
a {text-decoration:none;}
a {text-style: no-underline;}
a {text-decoration: no-underline;}
The elements <DIV> and <SPAN> have the following characteristics
Element <DIV> inherits properties defined for <SPAN> in a stylesheet
Elements <SPAN> and <DIV> define content to be inline or block-level
<DIV> and <SPAN> are used as alternatives for the element <P>
<DIV> is used inside element <P>.
Select the correct among the following for linking an external style sheet.
<link rel=“stylesheet” type=“text/css” href=“style.css”>
<style rel=“stylesheet” type=“text/css” href=“style.css”>
<link>stylesheet
<link href=“style.css”>stylesheet
Which of the following is the correct CSS syntax?
p:color=green, font-size=15px
{p:color=green, font-size=15px}
p {color:green, font-size:15px;}
p {color:green; font-size:15px;}
If "padding: 10px 5px 20px 0px" is given. What does this represent?
left:10px , top:5px , right:20px , bottom:0px
top:10px , right:5px , bottom:20px , left:0px
right:10px , bottom:5px , left:20px , top:0px
bottom:10px , left:5px , top:20px , right:0px
Enter your Full Reg No
Enter your Full name
Feedback on the quiz in one word
