NEW
Font size
WorksheetsQ2 - WebDez_CertPrep
Total questions: 25
Worksheet time: 13mins
What's wrong with the HTML code below?
<p>This is a paragraph in HTML</h1>
The closing tag should be </p>
The closing tag should be <>
The opening tag should be <a>
The opening tag should be </p>
Which of the following is an example of metadata about a webpage?
The title of the webpage
An <img> tag on a webpage
The body of the webpage
A <p> tag on a webpage
Which of the following is correct HTML code that will make a hyperlink to google.com?
<a href="https://google.com"> Link </a>
<a ref=https://google.com>
<a>Link to google.com</a>
Click Me<a h="https://google.com">
What does the following HTML code do? <img src="picture.jpg" style="width:200px; height:200px">
Adds an image to the webpage with a width of 200 pixels and height of 200 pixels
Makes a hyperlink to an image on the web
Uses an image as a hyperlink to another website
Adds an image to the webpage with a text description of the image dimensions
What is wrong with this HTML code? <img="picture.jpg" style="width:200px; height:200px">
The img tag needs a src attribute
There should be a closing tag </img>
You should not specify the style of an image element
It should use an <a> tag instead of <img>
What HTML code will produce the following content?
* Red
* Green
* Blue
<ul>
<li>Red</li>
<li>Green</li>
<li>Blue</li>
</ul>
<ol>
<li>Red</li>
<li>Green</li>
<li>Blue</li>
</ol>
<p>Red</p>
<p>Green</p>
<p>Blue</p>
Red <br> Green <br> Blue
Which tag defines a table header element in HTML?
<th>
<tr>
<table>
<li>
Which of the following contents might be best represented on a webpage using a table element?
A set of cat photos
A calendar for the month of March
A menu for a local restaurant
A set of dictionary entries
What is a correct way to specify a font family of Arial for all paragraph elements using a CSS rule?
p{
font-family:Arial;
}
h1{
font-family:Arial;
}
p{
font-style:Arail
}
<h1 style="font-family:Arial;">
What type of CSS selector is the most specific? In other words, what CSS rule overrides any other rules in case of conflict?
Select by ID
Select by Class
Select by Tag
body{
style=override;
}
How do you make a CSS rule for a class named 'alert' and set the font color to Red?
.alert{
color:Red;
}
#alert{
color:Red;
}
alert{
color:Red;
}
@alert{
color:Red;
}
What will the following CSS rules do?
h2{ color:Blue; }
.subtitle{ color:Green; }
All the h2 tags will be blue font and all the subtitle tags will be green font
All the h2 tags will be blue font unless they are labeled with a subtitle class. All elements labeled with a subtitle class will be green font
All the elements with the class subtitle will be green font except for the h2 tags
The webpage background color will be a mixture of blue and green
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?
Select by tag name, select by class name, select by id name
Select by id name, select by tag name, select by class name
Select by id name, select by class name, select by tag name
Select by class name, select by id name, select by tag name
Which of the following code snippets will select all <img> tags on a page and give them a height of 200 pixels?
<img style="height:200px;">
tag="img" {
height: 200px;
}
<img> {
height: 200px;
}
img {
height: 200px;
}
Suppose you have the following CSS rules:
p {
color: green;
}
.fire {
color: red;
}
#title {
color: blue;
}
What font color will the following HTML element have after being styled by the given CSS:
<h1 class="fire">Welcome!</h1>
red
green
blue
black
Suppose you have the following CSS rules:
p {
color: green;
}
.fire {
color: red;
}
#title {
color: blue;
}
What font color will the following HTML element have after being styled by the given CSS:
<p class="title">My First Paragraph</p>
red
green
blue
black
Suppose you have the following CSS rules:
p {
color: green;
}
.fire {
color: red;
}
#title {
color: blue;
}
What font color will the following HTML element have after being styled by the given CSS:
<p class="fire" id="title">Hello World!</p>
red
green
blue
black
What are the machines connected to the internet that serve up web pages called?
Browsers
Servers
Devices
Protocols
What is the first step in viewing a webpage?
Generating a request
Typing the URL into the browser
Clicking on a link
Refreshing a page
What is the first thing you need to do to host your own website?
Register a domain
Set up a server
Write the HTML code
Design the webpage layout
What does the domain part of the URL specify?
The specific resource being requested
The location of the resource on the internet
The type of file being requested
The language of the webpage
What is the third step in viewing a webpage?
Generating a request
Typing the URL into the browser
Clicking on a link
Receiving a response
What does the server do when it receives a request for a specific file?
Sends the file back to the browser
Generates a new request
Sends a response with the file's location
Redirects the request to another server
What is the fourth step in viewing a webpage?
Generating a request
Typing the URL into the browser
Receiving a response
Rendering the page
True or False: Web Design is the same as Web Developer.
True
False
