NEW
Font size
WorksheetsQUIZ 6 HTML CSS part 2 Version 2
Total questions: 40
Worksheet time: 1hrs 13mins
Set the color of the border
border-style
border-width
border-color
width
To create a dotted border around the page
border-style
border-width
border-color
width
sets the color of words in a paragraph
h1 {
color: pink;
}
img {
color: pink;
}
body {
color: pink;
}
p {
color: pink;
}
Select the rule set to make all the text in your web page blue and centered.
p {
color: blue;
}
body {
text-align: left;
color: blue;
}
p {
text-align: center;
color: blue;
}
body {
text-align: center;
color: blue;
}
Which selector will change the font of the text?
font-size
text-align
font-famiy
text-decoration
Which rule set would change the font size to 24?
font-size: 24
size: 24;
font-size: 24;
font size: 24;
CSS stands for
Code Style Sheet
Coding Style Sheet
Cascading Sheet Style
Cascading Style Sheet
Where in an HTML document is the correct placement for an internal style sheet?
In the <head> section
In the <body> section
inside an HTML element
In the <css> section
Which HTML tag is used to define an internal style sheet?
<style>
<css>
<script>
<body>
What type of CSS is used for a single page?
external
inline
internal
What type of CSS is used for a single word?
internal
inline
external
Any content that is visible on your web page should go between these tags.
<html></html>
<style></style>
<body></body>
<head></head>
p {color: red;}
border.What is wrong with this code?
The style sheet <link> statement belongs between <head> and </head>
The style sheet <link> statement belongs between <title> and </title>
The style sheet <link> statement belongs between </head> and <body>
The style sheet <link> statement belongs immediately after the DOCTYPE statement
The parent element of the <body> tag is
<html>
</html>
</body>
<head>
<h1 style="font-size:300%;">This is a heading</h1>
What type of CSS is this________?
Inline
Internal
External
None of the Above
The HTML style attribute has the following syntax:
<End tagname style="property:value;">
<tagname style="property:value;">
<dogname style="property:value;">
<Seasonname style="property:value;">
The CSS __________ property defines the background color for an HTML element.
background-color
background-season
background-fall
background-winter
CSS can be added to HTML documents in 3 ways:
Intime
Internal
External
Inline
Internal
Domestically
Inline
Internal
External
None of the above
"styles.css":
body { background-color: powderblue; } h1 { color: blue; } p { color: red; }
What is this code?
An External .CSS File
An Internal .CSS File
An Inline .CSS File
None of the above
·
The CSS _______ property defines the horizontal text alignment for an HTML element:
text-align
Font-size
Text-Color
backgound-color
__________by using the style attribute inside HTML elements
external
internal
inline
intime
_________by using a <style> element in the <head> section
External
Inline
Internal
intentional
_________by using a <link> element to link to an external CSS file
Inline
External
Internal
Instruction
<p style="color:red;">This is a paragraph.</p>
property = color
Value = red
property = red
Value = color
property = none
Value = none
property = style
Value = color : red
The HTML style attribute has the following syntax:
<tagname style="property:value;">
True
False
________by using the style attribute inside HTML elements
Interaction
Internal
External
Inline
_________by using a <style> element in the <head> section
Inline
interaction
Internal
External
_________by using a <link> element to link to an external CSS file
Inline
Internal
Instruction
External
What is your instructor name?
Mr. Trinity
Mr. Timothy
Mr. Timmity
Mr. Timity
