Fund Comp. HTML Test Flashcards
What does HTML stand for?
A. Hyper Text Markup Language
B. Hot Mail
C. How to Make Lasagna
D. Hyper Text Meta Language
A. Hyper Text Markup Language
What is the difference in an opening tag and a closing tag?
A. Opening tag has a / in front
B. Closing tag has a / in front
C. There is no difference
D. It does not have <> symbols
B. Closing tag has a / in front
< br/> What type of tag is this?
A. A bridge tag
B. A broken one
C. An opening tag
D. Break tag
D. Break tag
< body> Is this an opening tag or a closing tag
A. Opening
B. Closing
A. Opening
< /h1 > Is this an opening tag or a closing tag?
A. Opening
B. Closing
B. Closing
which is the correct way to tag an image?
A. img src=”image.jpg” alt=”type some text”
B. img scr=”image.jpg” alt=”type some text”
C. ing src=”image.jpg” alt=”type some text”
D. ing src=”image.jpg” alt=”type some text”
A. img src=”image.jpg” alt=”type some text”
What is an element that does not having a closing tag called?
A. Tag
B. Empty element
C. Closed element
B. Empty element
Which of the following is an example of an empty element?
A. <br></br>
B. <br></br></br>
C. </br>
D. <br></br>
D. <br></br>
Where should all items for the same web site be saved?
A. In the same folder
B. Where ever is fine
C. In different folders
D. Don’t need to be saved
A. In the same folder
What does
< a h r e f = ”h t t p : / / w w w . g o o g l e . c o m“ t i t l e = ” L i n k t o G o o g l e ” t a r g e t = ” _ b l a n k ” >
G o o g l e < / a >
do?
A. Adds a link to google on the page
B. Adds a search engine to the page
C. Nothing
D. Opens up the ‘Google’ picture
A. Adds a link to google on the page
What is always a welcome page, and explains the purpose or topic of the site?
A. Page 4
B. Homepage
C. Table of contents
D. None of the above
B. Homepage
When you “View Source” on a web page, what does it do?
A. Nothing
B. Shows the HTML code already used for the site
C. Opens a new website
D. Shows a panel that allows you to edit the HTML code
B. Shows the HTML code already used for the site
Which of the following is a valid HTML tag?
h1
<>
<h1>
>h1<
</h1>
<h1>
</h1>
Which of the following is an example of metadata about a webpage?
The title of the webpage
The body of the webpage
An <h1> tag on the webpage
All of the above
The title of the webpage
What is the function of the <br></br> tag?
Create a line break on the resulting webpage
Create a horizontal line on the resulting webpage
Italicize text
Bold text
Create a line break on the resulting webpage
Which of the following is the correct HTML code to create a hyperlink that displays and links to google.com?
<a>
Click Me
</a>
<a>
https://google.com
</a>
Click Me <a>https://google.com</a>
<a>
Click Me
</a href=”https://google.com”></a>
<a>
Click Me
</a>
Which of the following lines of HTML code will insert an image into a webpage?
<img></img>
https://codehs.com/static/img/logo.png
</img>
<img></img>
src=”https://codehs.com/static/img/logo.png”
</img>
<img></img>
<img https://codehs.com/static/img/logo.png>
<img></img>
Which of the following HTML code snippets would produce the following 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>
<ul>
<li>Apples</li>
<li>Bananas</li>
<li>Oranges</li>
</ul>
Which of the following tags defines a table row?
<table>
<tr>
<th>
<td>
</td></th></tr></table>
<tr>
</tr>
Which of the following tags defines a table header?
<table>
<tr>
<th>
<td>
</td></th></tr></table>
<th>
</th>
Which of the following HTML code snippets will generate the following table?
<table>
<tr>
<th>Name</th>
<th>Score</th>
</tr>
<tr>
<td>Karel</td>
<td>32</td>
</tr>
</table>
<table>
<tr>
<td>Name</td>
<td>Score</td>
</tr>
<tr>
<td>Karel</td>
<td>32</td>
</tr>
</table>
<table>
<tr>
Name
Score
</tr>
<tr>
Karel
32
</tr>
</table>
<table>
<th>Name</th>
<th>Score</th>
<td>Karel</td>
<td>32</td>
</tr>
</table>
<table>
<tr>
<th>Name</th>
<th>Score</th>
</tr>
<tr>
<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>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
Why do we use CSS?
HTML wasn’t intended to be able to style web pages, CSS allows us to add style
Separate the content of a web page from the design of a web page
Easily modify the look and feel of a web site even at a large scale
All of the above
All of the above
Which of the following is a valid CSS rule?
h1 {
color: blue;
}
style=”color:blue;”
css=”color:blue;”
h1 {
color {
blue;
}
}
h1 {
color: blue;
}
Which of the following code snippets will select all <img></img> tags on a page and give them a height of 200 pixels?
<img></img>
tag=”img” {
height: 200px;
}
img {
height: 200px;
}
<img></img> {
height: 200px;
}
img {
height: 200px;
}
alert {
Which of the following code snippets will select all HTML elements with the class “alert” and set their color to be red?
alert {
color: red;
}
JavaScript
.alert {
color: red;
}
JavaScript
color: red; } JavaScript
class=”alert” {
color: red;
}
.alert {
color: red;
}
logo {
Which of the following CSS rules will select the HTML element with the id logo and set the font size for that element to 60 pixels?
logo {
font-size: 60px;
}
.logo {
font-size: 60px;
}
font-size: 60px; }
id=”logo” {
font-size: 60px;
}
logo {
font-size: 60px; }