483 - Quiz 1

Ace your homework & exams now with Quizwiz!

If you're using Brackets to edit an HTML file, the easiest way to test it is to a) select the HTML page in the text editor and click the Live Preview icon b) find the file in your file explorer and double-click on it c) select the Run command from the File menu d) right-click on the file name and select Run

A

The id attribute a) can be applied to only one element in an HTML document b) determines the priority level of an HTML element c) determines the copy that will be displayed when the mouse hovers over an element d) can be used by CSS to apply the same formatting to more than one HTML element

A

Three of the common CSS selectors select a) by element type, id attribute, and class attribute b) div, h1, and p elements c) by element, header, and footer d) h1, ul, and li elements

A

When the code that follows is loaded into the browser, <h2>About this book</h2> a) it displays "About this book" in the default h2 format b) it displays "ABOUT THIS BOOK" in the default paragraph format c) it displays "About this book" in the default paragraph format d) it displays "ABOUT THIS BOOK" in the default h2 format

A

or SEO, the title element in the head section of an HTML document a) should include one or two focus keywords for ranking the page b) should be as descriptive as possible c) should be the same as the title elements for similar pages d) should include up to 10 keywords or phrases

A

A document-relative path in the reference for a link or image element is a) relative to the root folder b) relative to the folder for the current document c) relative to the folder that is one folder up from the folder for the current document d) relative to the folder that is one folder down from the folder for the current document

B

A valid HTML document requires a) a head element and an html element within a body element b) a head element and a body element within an html element c) a head element and an html element within a DOCTYPE declaration d) a head element and a body element with a DOCTYPE declaration

B

Example 3-1: The code for a list <nav> <ul> <li>October: <a href="speakers/toobin.html"> Jeffrey Toobin</a></li> <li>November: <a href="speakers/sorkin.html"> Andrew Ross Sorkin</a></li> </ul> </nav> (Refer to example 3-1) When the list is displayed in a browser, the list items a) will be preceded by numbers b) will be preceded by bullets c) will be preceded by tab characters d) won't be preceded by anything

B

Example 3-1: The code for a list <nav> <ul> <li>October: <a href="speakers/toobin.html"> Jeffrey Toobin</a></li> <li>November: <a href="speakers/sorkin.html"> Andrew Ross Sorkin</a></li> </ul> </nav> (Refer to example 3-1) When this HTML code is rendered in a browser, what is the first link that will be displayed? a) October: Jeffrey Toobin b) Jeffrey Toobin c) November: Andrew Ross Sorkin d) Andrew Ross Sorkin

B

The <a> element that follows goes to a web page <a href="books/javscript.html">JavaScript and DOM Scripting</a> a) in the same folder as the current page b) in a folder that is subordinate to the current page c) in another folder that is at the same level as the current page d) in a folder that is subordinate to the root folder

B

The portion of a web page that displays the most important content should be coded as an HTML5 a) section element b) body element c) main element d) div element

B

Three inline elements are a) nav, <q>, and span b) <q>, <a>, and img c) li, img, and h1 d) <a>, img, and ul

B

When you use a Markup Validation Service to validate the HTML for one web page, a) the page won't run in a browser if it isn't valid b) a trivial coding error can cause multiple validation errors c) you can be sure that the validated page will work correctly in all browsers d) you need to validate all pages of your site

B

When you use a text editor to start a new HTML file from an old file, you a) open the old file, add code to it, and save it with a new name b) open the old file, save it with a new name, and then add code to it c) create the new file and then copy and paste the code from the old file into it d) link to the old file when you start the new file

B

Which of the following should you do to provide accessibility to img elements with useful content? a) Code an src attribute with an absolute URL. b) Code an alt attribute that describes the image. c) Use a PNG image. d) Provide an alternate image.

B

By default, which type of element is displayed on a new line? a) all element types b) inline elements c) block elements d) semantic elements

C

Example 3-1: The code for a list <nav> <ul> <li>October: <a href="speakers/toobin.html"> Jeffrey Toobin</a></li> <li>November: <a href="speakers/sorkin.html"> Andrew Ross Sorkin</a></li> </ul> </nav> (Refer to example 3-1) Why does the nav element do? Incorrect Response a) It enables the links in the code that it contains. b) It causes the list items to be displayed vertically. c) It shows that its contents are used for navigation. d) It causes the list items to be displayed vertically.

C

The img element that follows <p><img src="../images/logo.gif" alt="Murach Logo"></p> a) displays "Murach Logo" above the image that's retrieved b) displays "Murach Logo" within a p element c) displays "Murach Logo" if the image can't be found d) displays the image as text within a p element

C

The title element in the head section of an HTML document specifies the text a) that's used to refer to the document b) that's used to refer to the application c) that's displayed in the browser's tab for the page d) that's displayed in the status bar of the browser

C

After you test a page in Chrome, the easiest way to test any changes that you make to the HTML or CSS files for the page is to save the changes and then a) use the Run command in the File menu for your text editor b) find the HTML file in your file explorer and double-click on it c) go to Chrome and select the Run command from the File menu d) go to Chrome and click the Reload button

D

In HTML, you can code a Boolean attribute as a) the attribute name, an equals sign, and yes or no b) the attribute name, an equals sign, and on or off c) the attribute name, an equals sign, and 1 or 0 d) just the attribute name

D

The code that follows <p id="copyright" class="base_color">Copyright 2018</p> a) has two parameters in an empty tag b) has two attributes in an empty tag c) has two parameters in an opening tag d) has two attributes in an opening tag

D

What character entity is created by the &nbsp; character? a) & b) © c) ® d) a space

D

What kind of tag is this? <img src="logo.gif" alt="Murach Logo"> a) an opening tag b) a closing tag c) a complete tag d) an empty tag

D

The img element that follows gets the image file from the images folder, which is <p><img src="../images/logo.gif" alt="Murach Logo"></p> a) at the level above the current folder b) at the level below the current folder c) at the same level as the current folder d) at two levels above the current folder

c


Related study sets

Unit A, Lesson 1: Structure of the heart

View Set

Unit 2 - Global System for Mobile (GSM) Communications

View Set

Linux Ch. 25 Deploying Bash Scripts

View Set

Cabot 105- Unit 1 Review, Unit Test 2 Ch 3/4, Chapter 5 & 6 Test, APT 200 unit 4 review, APT 200

View Set

ANTH 1101: Final Exam, Anthropology 101 Exam 1, Anthropology 101 Exam 2, Anthropology 101 Final, Anthropology 101- Exam 3, Anthropology 101, Anthropology 101, Anthropology 101, Anthropology 101, ANTHROPOLOGY 101 MIDTERM, Anthropology 101 Final, Anthr...

View Set

Transport and exchange mechanisms - Using a respirometer to measure oxygen consumption ✅

View Set

Pharm test review 1 Newest version

View Set