NEW
Font size
WorksheetsHTML & CSS Quiz
Total questions: 50
Worksheet time: 24mins
Which of the following is the code for a paragraph to be blue?
<td style=“background-color:blue;”>
<h1 style=“font-size:60px;”>
<p style=“color:blue;”>
<tagname style=“property:value;”>
Which of the following codes would create a horizontal line
<br>
<h1></h1>
<hr>
<p>
<p> tag is for...
Page of Text
Picture
Paragraph of text
Pineapples
Which is the proper way to write an h1 tag
<h1>Hello</h1>
<h1>"Hello
{h1}Hello{/h1}
<h1>Hello<h1>
HTML stands for...
Hyper Time Multiple Language
Hyper Text Mark-up Language
Hippo T-Rex Mascot Lemur
Hipper Text Make Language
The tag used for starting a new line is _______.
<BR>
<HR>
<MR>
The text inside the <TITLE> tag is displayed on the _____.
Menu Bar
Title Bar
Status Bar
HTML coding involves using ____________ to create webpages.
Tabs
Tags
Labels
Quotes
The beginning tag works like the "on" switch and the ending tag works like the "off" switch.
True
False
Which of the following creates the smallest header?
<H2><./H2>
<H3></H3>
<H4></H4>
<H6></H6>
Who is considered by many to be the "Father of the World Wide Web" and the creator of HTML?"
Tim Berners-Lee
Tim Cook
Tim Sweeney
“WWW” is the abbreviation for which of the following?
World Without Websites
World Wide Web
Workforce Wide Web
World Wide Watch
Which tag configures the next element or portion of text to display on a new line?
<line>
<nl>
<br>
<new>
What is the default horizontal alignment for elements on a webpage?
center
left
right
wherever you type them in the source code
Which of the following is the CSS property used to
set the background color of a web page?
bgcolor
background-color
color
none of the above
Which type of CSS is coded in the body of the web
page as an attribute of an HTML tag?
embedded
inline
external
imported
.hmt
An _______ is used to change the appearance of the whole website.
Internal Style Sheet
External Style Sheet
Inline Style Sheet
None of these
A _________ is a type of attribute of HTML tag.
value
property
declaration
To center the text inside an element, you can use ________ attribute of text.
center
align
margin
HTML provides the structure of the page and _______ the visual layout.
CSS
Attributes
Tags
Each property has a name and a value, separated by a ________
semi-colon (;)
colon (:)
comma (,)
CSS <style> tags go between ...
<title> </title>
<body> </body>
<h1> </h1>
<head> </head>
How do you change font sizes in CSS?
font-family: 20pt;
font-weight: 20pt;
font-size: 20pt;
font-align: 20px;
_________ points to the HTML element you want to style.
Selector Point
Value
Property
CSS File
Using __________ attribute of relevant tag, you can apply style sheet rules directly to any HTML element.
style
background
heading
link
A _________ is a type of attribute of HTML tags.
value
property
declaration
none of these
Each ________ is separated by semicolon.
selector
property
declaration
_________ contains one or more declarations.
Property
Value
Selector Point
Font
sets the color of words in a paragraph
h1 {
color: pink;
}
img {
color: pink;
}
body {
color: pink;
}
p {
color: pink;
}
Which selector will change the font of the text?
font-size
text-align
font-famiy
text-decoration
What is the correct syntax to change the background color with css?
background-color: purple;
background-color = "purple";
backgroundcolor=orange
change-background-color: purple
Which one is the largest heading?
h1
h2
h4
h6
Which one is the smallest heading?
h1
h2
h4
h6
