1/26
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What is the function of the div
tag?
To define a section of an HTML page
To group a block of elements together to format them with CSS
To efficiently apply the same style to several different elements
Which of the following correctly uses div to style multiple elements the same way?
<div class="intro">
<h2>Welcome</h2>
<p>Hi, welcome to my page.</p>
</div>What are IFrames?
What are IFrames?
HTML elements and pages embedded inside of other HTML pages
True or False: It is possible to embed any website inside IFrames.
False
Assume you have two files for your website, and these files exist in the same folder:
home.html
style.css
HTML
Which of the following is the proper way to apply the CSS code inside style.css
to the home.html
file?
Inside home.html:
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
HTML
Question: 2
Assume you have two files for your website, and these files exist in the same folder:
index.html
about.html
HTML
Which of the following is the proper way to link to the about.html
page from the index.html
page?
<a href="about.html">About This Site</a>
Who creates the look and feel of a website?
A web designer
Who writes the HTML and CSS that brings the site to life?
A web developer
Who thinks about the best way to display information on the site?
A web designer
True or False: The majority of emails are spam emails.
true
Question: 2
Which of the following is related to the issue of censorship on the Internet?
A government filtering search results to limit the access of information and suppress discussion amongst its citizens
Which of the following is the proper format for an HTML tag?
<h1>Content Affected by Tag</h1>
Which of the following best describes the difference between the domain and path of a URL?
The domain specifies where the browser’s request should be sent.
The path specifies exactly what file is being requested.
What is the domain of this URL:
www.example.com/home.html
What is generated from the following HTML code:
<h1>Hello</h1>
<h3>Hello</h3>
<h6>Hello</h6>
Which of the following classifies as metadata about a webpage?
The title of the webpage
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?
<img src="https://upload.wikimedia.org/wikipedia/commons/6/62/Big_and_little_dog.jpg">
What is the result of the following HTML code
Bread
Milk
Eggs
Suppose you are making a music streaming website and you want to make a page that displays a user’s music library.
Which of the following is the proper HTML code to create the following table:
Correct Answer
<table border="1">
<tr>
<th>Title</th>
<th>Artist</th>
<th>Length</th>
</tr>
<tr>
<td>CD Jam</td>
<td>Rooney Pitchford</td>
<td>3:55</td>
</tr>
<tr>
<td>Memory</td>
<td>Tom Misch</td>
<td>5:41</td>
</tr>
</table>
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?
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.
Which of the following is a valid CSS rule?
h1 {
color: blue;
}
CSS rules have a selector that defines which HTML elements the rule applies to.
We’ve learned about the following CSS Selectors:
Select by tag name
Select by class name
Select by id name
Which of the following ranks the selectors from highest precedence to lowest precedence?
Correct Answer
Select by id name, select by class name, select by tag name
Which of the following statements are true about styling your web pages with CSS:
I. Styling with CSS is more scalable than using style=
on each HTML tag that you want to style
II. You can change HTML tag style attributes with CSS files that are also possible using inline style=
on an HTML tag
Correct Answer
I and II
Which of the following code snippets will select all <img>
tags on a page and give them a height of 200 pixels?
img {
height: 200px;
}
Suppose you have the following CSS rules:
p { } .fire { } #title { }
What font color will the following HTML element have after being styled by the given CSS:
<h1 class="fire">Welcome!</h1>
red
Suppose you have the following CSS rules:
p {
}
.fire {
}
#title {
}
What font color will the following HTML element have after being styled by the given CSS:
<p class="title">My First Paragraph</p>
green
Suppose you have the following CSS rules:
p {
}
.fire {
}
#title {
}
What font color will the following HTML element have after being styled by the given CSS:
<p class="fire" id="title">Hello World!</p>
blue