Quiz 2 Web D

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

If your content contains code samples which markup element should you use?

code element

To maintain the original line breaks and spacing in text use _______ element.

pre element

A link has two main parts: a destination and a _____________ .

unknown answer Page 157

HTML5 focuses on _____________ , not on an element's presentation.

unknown answer page 91

<h1>This is a heading</h1> ____ This is a comment --> <p>This is a paragraph.</p>

zy 2.3

Fill in the blank Indicate what precedes the given list item when rendered by the browser. Valid answers are the word bullet, or 1., 2., 3. <ol> <li>Apples <ul> <li>Granny Smith</li> <li>Red Delicious</li> </ul> </li> <li>Oranges</li> </ol> _______ Red Delicious

(Answer zyBook 2.4 bullet <ul> starts a nested unordered list, so Granny Smith and Red Delicious will use bullets.)

M/C What does the following hyperlink do? <a href="http://example.com/index.html">See example</a> Do not click on link as it is not a link - It is asking what it will do if you click on it.

(Answer zyBook 2.7 Loads a page over an unencrypted connection URLs that begin with "http://" use unencrypted requests and responses over the web.)

A tag's attribute is:

)A value that provided additional information (The <html> tag uses an attribute to indicate the web page's language, and <meta> uses an attribute to indicate the character set. A tag attribute is a value that provides additional information about a particular tag and is included after the tag name but before the > in the tag. Each attribute has a name and a value, specified using the form name="value". Ex: <meta charset="UTF-8"> has an attribute named charset with value "UTF-8".

Fill in the blank Indicate what precedes the given list item when rendered by the browser. Valid answers are the word bullet, or 1., 2., 3. <ol> <li>Apples</li> <li>Oranges <ol> <li>Valencia</li> <li>Mandarin</li> </ol> </li> </ol> _______ Valencia

1. (Must have the period) Apples is numbered 1., and Oranges 2. Then, the nested <ol> starts a new numbered list, so Valencia will be numbered 1.

<h1>This is a heading</h1> ____ This is a comment --> <p>This is a paragraph.</p>

<!-- (You can add comments to your HTML source by using the following syntax: <!-- Write your comments here -->)

What modification causes the second paragraph not to display? <p>This is paragraph one.</p> <p>This is paragraph two. Do not display.</p> <p>This is paragraph three.</p>

<!-- <p>This is paragraph two. Do not display.</p> -->

The _______________ declaration for HTML5 represents the document type, and helps browsers display web pages correctly

<!DOCTYPE html> (The <!DOCTYPE> declaration represents the document type, and helps browsers to display web pages correctly. It must only appear once, at the top of the page (before any HTML tags). The <!DOCTYPE> declaration is not case sensitive. The <!DOCTYPE> declaration for HTML5 is: <!DOCTYPE html>)

M/C Indicate the tags needed at (b) in the following HTML to achieve the rendered nested lists shown. <ul> <li>Movies with cats <ul> <li>Garfield</li> <li>The Aristocats</li> (a) (b) <li>Movies with dogs (c) <li>Marley and Me</li> <li>101 Dalmatians</li> </ul> </li> </ul> Rendered List Movies with cats Garfield The Aristocats Movies with dogs Marley and Me 101 Dalmatians

</li>

M/C Indicate the tags needed at (a) in the following HTML to achieve the rendered nested lists shown. <ul> <li>Movies with cats <ul> <li>Garfield</li> <li>The Aristocats</li> (a) (b) <li>Movies with dogs (c) <li>Marley and Me</li> <li>101 Dalmatians</li> </ul> </li> </ul> Rendered List Movies with cats Garfield The Aristocats Movies with dogs Marley and Me 101 Dalmatians

</ul> (Answer zyBook 2.4 </ul> </ul> closes the nested list that has the list items Garfield and The Aristocats.)

HTML headings are defined with the <h1> to <h6> tags. _______ defines the least important heading:

<h6> <h1> HTML headings are defined with <h6> the to tags. <h1> defines the most important heading. <h6> defines the least important heading

Fill in the blank Enter the necessary HTML to create the part of the table specified. Start a table with the caption "store information".

<table><caption>store information</caption> (Answr ZyBook 2.5 <table><caption>store information</caption> A table with a caption is started with the <table>opening tag followed by the caption. A caption is created with the <caption> opening tag, the caption text, and the </caption> closing tag.)

Fill in the blank Enter the necessary HTML to create the part of the table specified. Create a table cell with datum of "open".

<td>open</td> (<td> open </td> A table cell is created with the <td> opening tag, the cell's content, and the </td> closing tag.)

Fill in the blank Enter the necessary HTML to create the part of the table specified. Create a table cell with header of "hours"

<th>hours</th> (Answer zyBook 2.5 <th> hours </th> A table header is created with the <th> opening tag, the header cell's content, and the </th> closing tag.)

Fill in the blank Enter the necessary HTML to create the part of the table specified. Create an empty table row with no content.

<tr></tr> (Answer zyBook 2.5 <tr> </tr> A table row is created with the <tr> opening tag, the row's content, and the </tr> closing tag. An empty row will only have opening and closing tags.)

M/C Indicate the tags needed at (c) in the following HTML to achieve the rendered nested lists shown. <ul> <li>Movies with cats <ul> <li>Garfield</li> <li>The Aristocats</li> (a) (b) <li>Movies with dogs (c) <li>Marley and Me</li> <li>101 Dalmatians</li> </ul> </li> </ul> Rendered List Movies with cats Garfield The Aristocats Movies with dogs Marley and Me 101 Dalmatians

<ul>

What appears on the webpage, for whatever reason, when an image does not appear?

Alternate text

Where is the error in the following HTML? <!--This paragraph is <!--a--> comment.-->

Comment inside another comment (A common error is trying to put a comment inside of another comment.)

Why do web developers leave comments in HTML code?

Comments are also great for debugging HTML, because you can comment out HTML lines of code, one at a time, to search for errors:

M/C What does the following hyperlink do? <a href="https://example.com/index.html">See example</a> Do not click on link as it is not a link - It is asking what it will do if you click on it.

Encrypts the web page load request and response (Answer zyBook 2.7 Encrypts the web page load request and response URLs that begin with "https://" use encrypted requests and responses over the web.)

The following HTML code is valid. <p>HTML is derived from HyperText Markup Language. <p>The inspiration for HTML was SGML, the Standard Generalized Markup Language.</p> HTML is simpler than SGML and adds hyperlinks.</p>

False

The following HTML is valid. You must read <em><cite>A Tale of Two Cities</em></cite>, one of the best selling books of all time.

False

This is valid HTML markup <p>Sentence one.<strong>Sentence two.</p>

False

This is valid HTML markup <p>We changed the <strong><em>font</strong></em> in this paragraph.</p>

False

To copy the functionality of another web page found on the web, just copy the HTML from the view source page.

False

True/False Refer to the HTML below. <ol> <li>Cats</li> <li>Dogs</li> <li>Hamsters</li> </ol> Changing the ordered list to an unordered list with type="A"changes the list to A., B., C.

False (Answer zyBook 2.4 False The type attribute is deprecated for <ul> in HTML5. An unordered list may use CSS to change the bullet style.)

True/False The following is a valid hyperlink. <a href="example.com/index.html">See example</a>

False (Answer zyBook 2.7 False The href attribute URL should include a scheme, such as https, when the URL includes a hostname.)

Hyperlinks may only contain text.

False (ZyBook 2.7 False Placing an image in the hyperlink creates a graphical hyperlink.)

Uncompressing a JPEG will restore all of the lost details.

False (ncompressing a JPEG will notrestore all of the lost details. You should keek a copy in an uncompressed format and only save it as a JPEG after you have made your final edits. Page 135)

True/False The web browser will always create a new window for hyperlinks whose target attribute is _blank.

False (nswer zyBook 2.7 False The browser can open the link in a new tab or window. Many modern browsers will open the link in a new tab instead of opening a new window.)

True/False Two tags within the same HTML document may have the same id.

False (zyBook 2.7 False Each id attribute must be unique within an HTML document, thus ensuring a URL with the fragment identifier refers to exactly one part of the document.)

True/False The following is a valid hyperlink. <a href="example.com/index.html">See example</a

False (zyBook 2.7 False The href attribute URL should include a scheme, such as https, when the URL includes a hostname.)

A self-contained piece of content referred to by the main content of your document.

Figure element

What is a lossless Web image format?

GIF

Using text attribute to open links in new tabs or windows is considered bad practice because: (One or more answers may be correct) It should be the user's decision, not HTML developers. Some users may be confused. Some users don't know that more than one page can be open at a time. It is inconvenient for users of screen readers. All of the above. None of the above.

It should be the user's decision, not HTML developers This creates usability and accessibility concerns.

A void element is an element that:

Only needs an opening tag (The <meta> element does not use a closing tag because <meta> is a void element. A void element is an element that only needs an opening tag. Other void elements include <img> for displaying an image and <input> for obtaining user input.)

M/C What does the following hyperlink do? <a href="ftp://example.com/index.html">Raw data</a> Do not click on link as it is not a link - It is asking what it will do if you click on it.

Opens a file (Answer zyBook 2.7 Opens a file URLs that begin with "ftp://" use the FTP protocol to load a data file over the web.)

M/C What does the following hyperlink do? <a href="mailto:[email protected]">Get in touch</a> Do not click on link as it is not a link - It is asking what it will do if you click on it.

Sends an email

The following HTML code is valid. <h2>Highway traffic code overview</h2>

True

The following HTML is valid. <em>You must read <cite>A Tale of Two Cities</cite>, one of the best selling books of all time.</em>

True

The following HTML is valid. <em>You must read <cite>A Tale of Two Cities</cite>, one of the best selling books of all time.</em>

True

The following HTML is valid. <p>Bananas grow <!--in bushes.</p>--> on a tree.</p>

True

The following HTML is valid. <p>This sentence does <!--not--> contain a comment</p>

True

To see how a web page is constructed, a user can view the page source in the browser.

True

True/False The default value for the target attribute is _self.

True (Answer zyBook 2.7 True By default when a hyperlink is clicked, the web browser will open the hyperlink in the same tab or window.)

True/False The following is a valid hyperlink. <a href="https://example.com/index.html#History"> History</a>

True (Answer zyBook 2.7 True The #History fragment identifier specifies the History section of the index.html page.)

True/False The following is a valid hyperlink. <a href="https://example.org/index.html"> <img src="https://example.org/picture.jpg" alt="Picture of cat"></a>

True (Answer zyBook 2.7 True The content displayed for a hyperlink may be any valid HTML or text, including images.)

The fragment identifier for the <p id="location"> opening tag is location.

True (Answer zyBook 2.7 True The fragment identifier is the same as an element's id attribute.)

True/False The fragment identifier for the <p id="location"> opening tag is location.

True (Answer zyBook 2.7 True The fragment identifier is the same as an element's id attribute.)

True/False The following is a valid hyperlink. <a href="course.html#Notes">Notes</a>

True (zyBook 2.7 True The fragment identifier #Notes links to the Notes section of course.html, which is located in the same path.)

True/False Line (d)is correct (a) <ul> (b) <li>Apples<li> (c) <li>Oranges (d) </ul>

True (zyBooks 2.4 True </ul> ends an unordered list.)

Which of the following statements is true?

Use absolute URLs for links to webpages on other sites.

The easiest way to speed up download times for images is to:

Use small images (How large should images be for your website? Generally, you should keep them a few hundred pixes wide at the most. The larger the image size, the larger the file size, and the slower your webpages will load. Page 137)

When might the br be OK?

When creating line breaks in a stree address. When creating line breaks in poems

Block-level links:

Wrap a link around most elements or groups of elements.

An ______ defines the specific location in a webpage where a link leads when triggered.

anchor


Kaugnay na mga set ng pag-aaral

Economics and Personal Finance Unit 2 Review

View Set

Unit 1 - Health History/General Survey

View Set

Lehne Chapter 53: Management of ST-Elevation Myocardial Infarction

View Set

BIO201 Osseous Tissue Review Guide

View Set

FIN CHAPTER 11: RISK AND RETURN IN CAPITAL MARKETS

View Set

DHY WGU Fundamentals of Interconnecting Network Devices - C246

View Set