Chapter 8 HTML Quiz 1
Fill in the blanks for the HTML code below to create a link to your favorite Web site. <___ ______="_______________________">My favorite web site.<____>
<a href="http://google.com">My favorite web site.</a>
What tag is used to create a line break--to force a new line without starting a new paragraph?
<br>
What tag is used to create a heading 1 element?
<h1>
What is the basic structure for an HTML document?
<html> <head> <title>This is a title.</title> </head> <body> This is the content of the Web page. </body> </html>
Fill in the blanks for the HTML code below to embed an image called logo.jpg on a Web page. Suppose logo.jpg is in the same folder as the HTML document that embeds it. <_____ _______="____________"__>
<img src="logo.jpg"/>
Fill in the blanks for the HTML code to create a list as shown. 1. Preheat oven to 450 degrees. 2. Heat butter and oil in a large saucepan. 3. Cook the shrimp for 10 minutes.
<ol> <li>Preheat oven to 450 degrees.</li> <li>Heat butter and oil in a large saucepan.</li> <li>Cook the shrimp for 10 minutes.</li> </ol>
Fill in the blanks for the HTML code to create a table as shown. Elephants|Tulips Tigers|Roses
<table> <tr> <td>Elephants</td> <td>Tulips</td> </tr> <tr> <td>Tigers</td> <td>Roses</td> </tr> </table>
Fill in the blanks for the HTML code to create a list as shown. • Elephants • Tigers • Frogs
<ul> <li>Elephants</li> <li>Tigers</li> <li>Frogs</li> </ul>
What is a URL?
A standard address for Web pages and other resources on the World Wide Web.
What are web browsers?
Application programs such as Firefox, Internet Explorer, Safari, Chrome, and Opera
What does CSS stand for?
Cascading Style Sheets
What is HTML 5?
Currently the newest standard of HTML
What are the new features of HTML 5 that are overviewed in this chapter?
There is only one simplified doctype declared; character encoding is simplified; no restriction for cases for tag and attribute names; The value of an attribute does not have to be in quotation marks; No need to write out the value for Boolean attribute; The end tag is not required
T/F HTML documents are plain text files.
True
What does URL stand for?
Uniform Resource Locator
Which of the following is correct about HTML5? a. Three doctypes: Strict, Transitional, and Frameset b. Only one simplified doctype declared like this:<!DOCTYPE HTML>
b. Only one simplified doctype declared like this:<!DOCTYPE HTML>
What are the markup codes called in an HTML document that tell the Web browser how to format the text when displaying it? a. Attributes b. Tags
b. Tags
For the URL: http//www.schoolname.edu/departments/art/index.html: What is the file name in this Web address?
index.html
For the site shown in Figure 8.12, to add a link on the page mocha-java.html to link to the Web page French-roast.html, the document-relative file path is ___________________.
simply the filename french-roast.html
By default, the line created using <br> has what kind of line spacing?
single-line spacing
HTML documents are ______.
text files
For the URL: http//www.schoolname.edu/departments/art/index.html: What is the domain name of the Web server?
www.schoolname.edu
What does HTML stand for?
Hypertext Markup Language
In the HTML code: <p>This is a paragraph.</p> <p> is the _________, and </p> is the __________. The text "This is a paragraph." is the __________.
Start tag; end tag; element content
Which of the following is correct about the use of quotation marks for the attribute value in HTML5? a. No quotation marks are required. b. The value has to be enclosed by quotation marks.
a. No quotation marks are required.
Which of the following is correct about cases for the tag and attribute names in HTML5? a. No restrictions on cases b. All lowercase c. All uppercase d. Capitalized
a. No restriction on cases
Which of the following is correct about the use of end tags in HTML5? a. Not required b. Required
a. Not required
For the URL: http//www.schoolname.edu/departments/art/index.html: This file is located in what folder, which is inside what other folder?
art; departments
Which of the following is correct character encoding declaration in HTML5? a. <meta http- equiv="Content-Type" content= "text/html; charset=utf-8" /> b. <meta charset="UTF-8" />
b. <meta charset="UTF-8" />
