Font size
WorksheetsFundamentals of Computing - Unit 4 Test Review
Total questions: 27
Worksheet time: 11mins
HTML stands for Hypertext Markup Language
True
False
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
What symbol should you use to target an id in css?
.
+
id
#
What symbol should you use to target a class name in css?
#
()
.
class
TRUE OR FALSE: HTML is used to style web pages.
True
False
TRUE OR FALSE: CSS is used to style web pages
True
False
The <h6> heading tag is the smallest and <h1> is the largest.
True
False
You don't have to give attribution/credit if you use an image with a Creative Commons license
True
False
When making a web page which THREE of the following tasks is the CSS (Cascading Style Sheet) most useful for?
Making the text a different color
Separating headings from paragraphs
Putting borders on an image
Moving an image to the left or right side of the page
Organizing text into a list
Which one of these situations would be best for using classes in HTML/CSS?
When you want your h3 tags to be bold, but your h1 tags to be italicized
When you want headings and paragraphs to be a different color
When you want some images to float left, and others to float right
When you want all pages on the site to have the same style
When you want to make a special color using RGB codes
Which of these would be the most likely reason for your CSS styles not working?
A. Forgetting to link the stylesheet using the <link> tag
B. Naming your page something other than index.html
C. Misspelling a color name in your CSS file
A and C
None of the above
Assume you have the code <h1 class="special">Hello!</h1>. Which two of these could you add to your style sheet to turn "Hello!" bold?
.h1 { font-weight: bold; }
h1 { font-weight: bold; }
#special { font-weight: bold; }
.special { font-weight: bold; }
If you have three different paragraphs, what would be the BEST way to make sure only one specific paragraph will have different color text? This different color will only ever be applied to that one paragraph.
Use a class on the paragraph and write CSS rules for that class
Use an ID on the paragraph and write CSS rules for that ID
Don't bother
Use a class on the other two paragraphs and write CSS rules for that class
What type of font is this question written in?
Serif
Sans-serif
What does the "href" attribute do on the <a> tag?
Nothing
Links to a CSS file to apply styles to the page
Tells a hyperlink where to go when a link is clicked on
What TWO things does the "alt" attribute do on an <img> tag?
Provides alternate text that will show if an image doesn't load
Provides a backup/alternate image that will show if an image doesn't load
Provides text that may be used by certain accessibility devices such as braille readers or screen readers
Links to where you found the image
The difference between a <link> tag an an <a> tag is best described as:
<link> tags create a clickable link to another page or site, while <a> tags create a relationship to another file such as a CSS stylesheet
<a> tags create a clickable link to another page or site, while <link> tags create a relationship to another file such as a CSS stylesheet
They are the same thing
Which of these is the best reason to use a Creative Commons Attribution (CC-BY) license?
To make sure you get credit for your work when other people use it
To make sure that your work is shared under the same license type when other people use it
To make sure that no one can change your work when other people use it
To make sure that no one can use your work for advertising or to make money
Which of these is the best reason to use a Creative Commons No Derivatives (CC-ND) license?
To make sure you get credit for your work when other people use it
To make sure that your work is shared under the same license type when other people use it
To make sure that no one can change your work when other people use it
To make sure that no one can use your work for advertising or to make money
Which of these is the best reason to use a Creative Commons Non-Commercial (CC-NC) license?
To make sure you get credit for your work when other people use it
To make sure that your work is shared under the same license type when other people use it
To make sure that no one can change your work when other people use it
To make sure that no one can use your work for advertising or to make money
Which of these is the best reason to use a Creative Commons Share-Alike (CC-SA) license?
To make sure you get credit for your work when other people use it
To make sure that your work is shared under the same license type when other people use it
To make sure that no one can change your work when other people use it
To make sure that no one can use your work for advertising or to make money
What is the most effective way to get text to wrap around the side of an image?
Using the text-align CSS property
Using the <wrap></wrap> tags
Using the float CSS property
This is not possible with HTML or CSS
What is missing from the hyperlink tag: <a href="??">Click here</a>
The clickable text of the link
Nothing. The tag works fine
The closing tag
The name of the HTML file or URL the link is going to
Which of the following CSS properties can be used to give an element "personal space"?
personal-space
margin
padding
font-size
Assume you have the following CSS, what will happen if the computer can't load Times New Roman or Georgia fonts? p { font−family: Georgia, ′Times New Roman′, serif}
The page won't load
It will use Arial font
It will choose any serif font
It will show weird symbols on the page
Which of the following is not a best practice?
Keep your HTML and CSS neat, tidy, and aligned
Use an ID multiple times throughout a page
Use thoughtful and short names for images and pages
Put all visible content between the <body></body> tags
You want to create artwork that can be used freely by others. You are okay with them modifying it if they'd like to and they are also free to use it for commercial purposes. Which license could you use and WHY? Your choices are: 1. Creative Commons Attribution 2. Creative Commons No Derivatives 3. Creative Commons Share-Alike Non-Commercial.
