HTML Exam 1
Website
a collection of related webpages
href
tells the browser where to go when a link is clicked
<p>Hi! How are you?</p>
which line of code displays: Hi! How are you?
<
which special character is sued so "<" is not treated as apart of the following tag
301
which status code indicates that a web resource had been moved to another URL
<caption>
which tag adds short descriptive text to a table
<tbody> </tbody>
which tag defines the tbody (organization, groups the body of the table together)
iframe
which tag is used for playing videos from youtube
Status Line
the code "HTTP/1.1" is which part in an HTTP request?
to leave notes or reminders
why do web developers leave comments in the code
second-level domain
For the website www.canada.travel, what domain-level hierarchy is "canada"
"travel"
For the website www.canada.travel, what top-level heirarchy
as a single space
How do multiple spaces within a p tag display
Path
In the URL <https://www.google.com/search?q=Hostname> what is "/search?q=Hostname"
the color is set to blue
What happens to elementX if the variable x is 4? elementX.style.color = "blue"; if (x == 1) {elementX.style.color = "yellow";} else if (x == 2) {elementX.style.color = "green";} else if (x == 3) {elementX.style.color = "red";}
<ul> <li><li><li> </ul>
bulleted list
work acceptably on all established browsers
good practice is to make sure webpages ___________
absolute
https://google.com is an example of a _______ URL
<style>
CSS rules may be placed within ________ tags of an HTML file
opening tag
in HTML <img> is an example of __________
mark
in the following CSS rule, what is the element to be styled? mark {background-color: yellow;}
variables
javascript is used to modify the _______
form method="GET"
means it uses the variables in the link
Domain names are easy to remember, and IP addresses are not
reason why someone would use a domain name instead of an IP address
WHATWG (Web Hypertext Application Technology Working Group)
the name for the organization that is currently setting the HTML standards
<h6>, <h1>
the smallest heading is ______ while the largest heading is _____
<ol>
the tag _________ creates a numbered list
form method="POST"
uses variables in the form
HTML, CSS, and JavaScript
what are the three key languages used in modern web design
JPEG, PNG, GIF
what are the three popular image formats
required
what attribute is used to force a user to enter a value into a form
<!-- -->
what denotes a comment in HTML
network sniffers
what does HTTPS protect sensitive info from
sets the variable obj to the element with id "Header"
what does this JavaScript line of code do? obj = document.getElementById("Header");
the numbers change to lower-case Roman numerals
what happens when you type = "i" is added to the <ol> tag?
range
what input type allows the user to select a number without actually typing anything
date
what input type forces the user to enter a valid date
tel
what input type is used for phone numbers
retrieval time of web content
what is browser caching designed to reduce
use responsive (scalable) font size whenever possible
what is something that a web designer can do to make a web page successful
RGB(0, 0, 0) / #000000
what is the color code for black?
RGB(255, 255, 255) / #FFFFFF
what is the color code for black?
<table> <tr><th></th></tr><tr><td></td></tr></table>
what is the correct structure for creating a table
href = "#Africa"
what is the fragment identifier here (# -> references an area in our HTML)
use javascript if not available in HTML
what is the preferred approach for using a wedge that may not be currently available on all browsers
name
what radio button attribute is used to allow only one to be selected from a group
non-breaking hyphen
what special character is used to display a phone number on the same line without breaking
source
what tag is used to provide alternate file formats for playing audio files
<a href = ""><img src="" alt=""</
what turns the picture into a link
one
when a user checks a single checkbox in a series of 4 checkboxes, how many items are sent to the server when the submit button is pushed
comment inside another comment
where is the error in the following? <!--This paragraph is <!--a--> comment. -->
footer
which HTML container is commonly used to use copyright information on a webpage
<strong><em>strong emphasis</em></strong>
which HTML element displays the text "strong emphasis" in the style of strong emphasis
<div>
which HTML element is a block with no semantic meaning
alt
which attribute displays text when an image cannot be viewed
<td rowspan="4">
which attribute makes the data span 4 rows
muted and autoplay
which attribute(s) is/are required to automatically play a <video> in all browsers
<br> after every sentence
which code segment makes breaking new line possible in a paragraph?
<p>Hello World</p>
which element is complete?
<input type="password">
which element property follows the developer guidelines
<strong>
which format conveys the importance of the word "only" in the sentence
&
select the special character that completes the abbreviation AT_T
the cell occupies 2 columns
<td colspan="2"> what effect does the cops-an have on the table data
<ul> <li>England</li> <li>Japan</li> <li>Australia</li> </ul>
What is the proper structure for creating a bulleted list?
missing "href="
What is the reason that the HTML element<p><a "https://www.ZYBOOKS.com//">Visit the zyBooks</a> website</p>will not produce a valid link?
text, images, and metadata
What kinds of information can appear in HTML
Web Browser
What program is used for viewing HTML files
<img src="https://www.zybooks.com/ducati.jpg">
Which HTML element displays an image?
<!DOCTYPE html> <html lang= "english"> <meta charset="UTF-6"> <title>My Page</title> <body> <p>Hi</p> </body> </html>
Which block of code will result in an error in the HTML validator?
nested list
a list within a list is called a(n)
3
a web browser sends HTTP requests to a web server for a web page with a view and a JavaScript file. How many HTTP responses will the web serve likely send to the web browser? (1. request HTML file, 2. request Java file, 3. sending video file)
a link opens in a new window browser
adding _blank attribute to a link results in
192.168.0.1
an example of what an IP address looks like
<!DOCTYPE html>
declares the document as HTML