20 questions
True or False: As long as you cite your sources, you can put any image you find online on your website.
True
False
Which of the following actions will help you avoid violation of copyright laws?
Always cite the source of the image
Check the copyright of the image to make sure it can be used by
others without permission
Limit your searches to public domain images
All of the above
Which of the following HTML code snippets would produce this on a web page:
*Apples
*Bananas
*Oranges
<ul>
Apples
Bananas
Oranges
</ul>
<ol>
Apples
Bananas
Oranges
</ol>
<ul>
<li>Apples</li>
<li>Bananas</li>
<li>Oranges</li>
</ul>
<ol>
<li>Apples</li>
<li>Bananas</li>
<li>Oranges</li>
</ol>
Which of the following tags defines a table row?
<table>
<tr>
<th>
<td>
Which of the following tags defines a table header?
<table>
<tr>
<th>
<td>
Which of the following HTML code snippets will generate the following table?
<table border="1">
<tr>
<th>Name</th>
<th>Score</th>
</tr>
<tr>
<td>Karel</td>
<td>32</td>
</tr>
</table>
<table border="1">
<tr>
<td>Name</td>
<td>Score</td>
</tr>
<tr>
<td>Karel</td>
<td>32</td>
</tr>
</table>
<table border="1">
<tr>
Name
Score
</tr>
<tr>
Karel
32
</tr>
</table>
<table border="1">
<th>Name</th>
<th>Score</th>
<td>Karel</td>
<td>32</td>
</tr>
</table>
Which of the following HTML code snippets is the proper way to set the background color of an <h1> tag
to be blue?
<blue>
<h1>Hello</h1>
</blue>
<h1 background-color="blue">Hello</h1>
<h1 style="blue">Hello</h1>
<h1 style="background-color:blue;">Hello</h1>
Which of the following is a valid color in HTML?
“blue”
“rgb(255, 0, 0)”
“#00FF00”
All of the above
All of the colors you see on a computer screen are the result of a mixture of what three colors?
red, yellow, blue
green, orange, purple
red, green, blue
red, green, yellow
What is generated from the following HTML code:
<h1>Hello</h1>
<h3>Hello</h3>
<h6>Hello</h6>
What is the result of the following HTML code:
<ol>
<li>Bread</li>
<li>Milk</li>
<li>Eggs</li>
</ol>
Which of the following is NOT a tag used when making HTML tables?
<tr>
<td>
<te>
<th>
<h1 style="color:red;">
<h3 style="font-size:40px; background-color:blue;">
What is a problem with doing HTML styling as shown above?
some tags cannot be styled
you cannot do more than one style per tag
there are only a limited number of colors you can use
you have to code the style command each time you use the tag
Which of the following correctly uses HTML styling?
<h1 color=blue>Hello, World!</h1>
<h1 "blue;">Hello, World!</h1>
<h1 id="blue">Hello, World!</h1>
<h1 style="color:blue;">Hello, World!</h1>
How is the <th> tag different than the <td> tag?
<td> tags can only be used on one row
<th> tags make the font bold
<td> tags cannot be used with images
<th> tags make everything double spaced
Which of the following is the correct HTML code to create a hyperlink that displays Click Me and
links to google.com?
<a href="https://google.com">
Click Me
</a>
<a href="Click Me">
https://google.com
</a>
Click Me <a>https://google.com</a>
<a>
Click Me
</a href="https://google.com">
Which of the following lines of HTML code will insert an image into a webpage?
<img>
https://codehs.com/static/img/logo.png
</img>
<img>
src="https://codehs.com/static/img/logo.png"
</img>
<img src="https://codehs.com/static/img/logo.png">
<img https://codehs.com/static/img/logo.png>
An image is hosted at
https://upload.wikimedia.org/wikipedia/commons/6/62/Big_and_little_dog.jpg
Which of the following is the proper HTML code to display this image on your webpage?
<a href="https://upload.wikimedia.org/wikipedia/commons/6/62/Big_and_little_dog.jpg">Image</a>
<img>https://upload.wikimedia.org/wikipedia/commons/6/62/Big_and_little_dog.jpg</img>
<img src="https://upload.wikimedia.org/wikipedia/commons/6/62/Big_and_little_dog.jpg">
<img src="https://upload.wikimedia.org/wikipedia/commons/6/62/Big_and_little_dog.jpg"></img>
Suppose you have written a web page using HTML and it is hosted at the URL
yourdomain.com/home.html
Which of the following statements is true about which devices can view your website?
Only browsers on desktop computers can view your website
because only desktop browsers can render HTML based web
pages.
Only browsers on mobile phones can view your website because
only mobile browsers can render HTML based web pages.
Only computers made after the day you publish your website can
view your website. Older computers can’t understand HTML.
Any browser on any device will be able to view your webpage,
because all browsers and devices on the Internet agree to use the
same protocols for sending, receiving, and viewing webpages.
When looking at the HTML tag <h1 style="font-size:60px;"> what does "px" mean?
protocol
paragraph
percent
pixel