NEW
Font size
WorksheetsHTML AND CSS
Total questions: 25
Worksheet time: 25mins
Examine the following HTML code:
<style>
body {color: maroon;
Font-size: 12pt;}
p {color: gray;
font-size: 12pt;}
.shirts {color: burgundy;
font-size: 14pt;}
</style>
What will be the color of the text in the second paragraph?
Slateblue
Burgundy
Maroon
Gray
Match the definition to its style sheet term.
A style indicator that can be used on any tag
class
ID
Element
pseudo-class
Match the definition to its style sheet term.
A style indicator that is used on a specific HTML tag
class
ID
Element
pseudo-class
Match the definition to its style sheet term.
A style indicator used for a specific behavior on a specific HTML tag
class
ID
Element
pseudo-class
For each statement below which is the true statement
The heading "Coming Soon" will have a font size of 16 points.
The paragraph will have a color of steelblue
The paragraph will have the Georgia font.
Indicate which style sheet would be used for the situation.
The body tag needs to have the segoe UI font throughout the entire website.
External
inline
internal
Indicate which style sheet would be used for the situation.
An address tag at the bottom of a new items page needs to have a color of dark magenta. No other address tags need formatting.
External
inline
internal
Indicate which style sheet would be used for the situation.
A sales page needs to have a lightgray background, and as a result its text needs to be in dark gray.
External
inline
internal
For each statement regarding best practices on creating style sheets using CSS, select the false statement in the given statements.
Reusing code from one part of a style sheet to another helps to minimize syntax errors.
Setting the body element to have a font of Segoe UI will ensure every device that views the website will see that font.
Web pages that include style sheets should be tested on multiple browsers.
Match the following CSS properties with a value for that property.
-Bold
font-style
font-weight
text-decoration
Match the following CSS properties with a value for that property.
-italic
font-style
font-weight
text-decoration
Match the following CSS properties with a value for that property.
-Underline
font-style
font-weight
text-decoration
Match the appropriate HTML element or attribute with its use in displaying images, Not all choices will be used.
Defines the location of a picture.
src
img
alt
Match the appropriate HTML element or attribute with its use in displaying images, Not all choices will be used.
HTML tag used to display a picture
src
img
alt
Match the appropriate HTML element or attribute with its use in displaying images, Not all choices will be used.
Used to display text when a picture does not load properly
src
img
alt
Which HTML tag is used to display a vector-based graphic that is being built on the page (meaning it was not build using another app)?
svg
img
script
canvas
Match the Html element with its definition.
-script
This tag will start a canvas but is not just used to build a canvas
Used to build graphics that will not become pixelated no matter what their size.
Used to load and display pictures
Uses JavaScript to build pixel-based graphics
Match the Html element with its definition.
-svg
This tag will start a canvas but is not just used to build a canvas
Used to build graphics that will not become pixelated no matter what their size.
Used to load and display pictures
Uses JavaScript to build pixel-based graphics
Match the Html element with its definition.
-img
This tag will start a canvas but is not just used to build a canvas
Used to build graphics that will not become pixelated no matter what their size.
Used to load and display pictures
Uses JavaScript to build pixel-based graphics
Match the Html element with its definition.
-img
This tag will start a canvas but is not just used to build a canvas
Used to build graphics that will not become pixelated no matter what their size.
Used to load and display pictures
Uses JavaScript to build pixel-based graphics
Match the Html element with its definition.
-canvas
This tag will start a canvas but is not just used to build a canvas
Used to build graphics that will not become pixelated no matter what their size.
Used to load and display pictures
Uses JavaScript to build pixel-based graphics
You have a video, called blues, that is available in two forms: mp4 and mov. The mp4 video should play if the browser supports it. The mov video should only play if the mp4 format is not supported. A user should be able to play the video when pressing a play button.
Place the code lines used to display this video in the correct order. not every line of code will be used. Which is the LINE 1
<video height="480" controls="controls">
<source src="blues.mp4" type="video/mp4" / >
<source src="blues.mov" type=" video/quicktime" />
</video>
You have a video, called blues, that is available in two forms: mp4 and mov. The mp4 video should play if the browser supports it. The mov video should only play if the mp4 format is not supported. A user should be able to play the video when pressing a play button.
Place the code lines used to display this video in the correct order. not every line of code will be used. Which is the LINE 2
<video height="480" controls="controls">
<source src="blues.mp4" type="video/mp4" / >
<source src="blues.mov" type=" video/quicktime" />
</video>
You have a video, called blues, that is available in two forms: mp4 and mov. The mp4 video should play if the browser supports it. The mov video should only play if the mp4 format is not supported. A user should be able to play the video when pressing a play button.
Place the code lines used to display this video in the correct order. not every line of code will be used. Which is the LINE 3
<video height="480" controls="controls">
<source src="blues.mp4" type="video/mp4" / >
<source src="blues.mov" type=" video/quicktime" />
</video>
You have a video, called blues, that is available in two forms: mp4 and mov. The mp4 video should play if the browser supports it. The mov video should only play if the mp4 format is not supported. A user should be able to play the video when pressing a play button.
Place the code lines used to display this video in the correct order. not every line of code will be used. Which is the LINE 4
<video height="480" controls="controls">
<source src="blues.mp4" type="video/mp4" / >
<source src="blues.mov" type=" video/quicktime" />
</video>
