Fund Comp. HTML Test Flashcards

1
Q

What does HTML stand for?

A. Hyper Text Markup Language
B. Hot Mail
C. How to Make Lasagna
D. Hyper Text Meta Language

A

A. Hyper Text Markup Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

B. Closing tag has a / in front

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

< br/> What type of tag is this?

A. A bridge tag
B. A broken one
C. An opening tag
D. Break tag

A

D. Break tag

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

< body> Is this an opening tag or a closing tag

A. Opening
B. Closing

A

A. Opening

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

< /h1 > Is this an opening tag or a closing tag?

A. Opening
B. Closing

A

B. Closing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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

A. img src=”image.jpg” alt=”type some text”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an element that does not having a closing tag called?

A. Tag
B. Empty element
C. Closed element

A

B. Empty element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following is an example of an empty element?

A. <br></br>
B. <br></br></br>
C. </br>
D. <br></br>

A

D. <br></br>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A. In the same folder

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A. Adds a link to google on the page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

A

B. Homepage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

B. Shows the HTML code already used for the site

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which of the following is a valid HTML tag?

h1

<>

<h1>

>h1<
</h1>

A

<h1>
</h1>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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

A

The title of the webpage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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

A

Create a line break on the resulting webpage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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

<a>
Click Me
</a>

17
Q

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>

A

<img></img>

18
Q

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>

A

<ul>
<li>Apples</li>
<li>Bananas</li>
<li>Oranges</li>
</ul>

19
Q

Which of the following tags defines a table row?

<table>

<tr>

<th>

<td>
</td></th></tr></table>

20
Q

Which of the following tags defines a table header?

<table>

<tr>

<th>

<td>
</td></th></tr></table>

21
Q

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>

A

<table>
<tr>
<th>Name</th>
<th>Score</th>
</tr>
<tr>
<td>Karel</td>
<td>32</td>
</tr>
</table>

22
Q

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>

A

<h1>Hello</h1>

23
Q

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

A

All of the above

24
Q

Which of the following is a valid CSS rule?

h1 {
color: blue;
}

style=”color:blue;”

css=”color:blue;”

h1 {
color {
blue;
}
}

A

h1 {
color: blue;
}

25
Q

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;
}

A

img {
height: 200px;
}

26
Q

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;
}

A

.alert {
color: red;
}

27
Q

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;
}

A

logo {

font-size: 60px; }