Deck 6: Links and Images
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/30
Play
Full screen (f)
Deck 6: Links and Images
1
Path-absolute URLs start at the web server's root. To indicate the root, path-absolute URLs use which of the following?
A) \
B) http:
C) index.html
A) \
B) http:
C) index.html
A
2
What should you do to avoid line wrap?
A) Press enter at an appropriate breaking point, and on the next line, indent past the starting point of the prior line.
B) Use absolute positioning for large chunks of text.
C) Use the <br> element at appropriate positions for large chunks of text.
A) Press enter at an appropriate breaking point, and on the next line, indent past the starting point of the prior line.
B) Use absolute positioning for large chunks of text.
C) Use the <br> element at appropriate positions for large chunks of text.
A
3
An a element's href attribute specifies a resource that is to be linked to. If the href attribute uses an absolute URL, that means the browser will look for the resource:
A) on a web server that is different from the current web page's web server.
B) on the current web server, but on a web page different from the current web page.
C) within the current web page.
A) on a web server that is different from the current web page's web server.
B) on the current web server, but on a web page different from the current web page.
C) within the current web page.
A
4
If an a element's href attribute is assigned a # value (e.g., <a href="# pandaGrooming">), the # value is supposed to match up with:
A) an element's id value.
B) an element's class value.
C) a CSS noref value.
D) a CSS link value.
A) an element's id value.
B) an element's class value.
C) a CSS noref value.
D) a CSS link value.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
5
If a user specifies a URL address that ends with a directory name, then the web server will automatically look for a file named index.html and attempt to load it into a browser.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
6
By default, browsers use blue to display links that have not been clicked. They are formally known as ______ links.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
7
Describe the elements that the following CSS pseudo-class selector matches:
ul > :nth-child(1)
ul > :nth-child(1)
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
8
Given the following directory tree structure, provide a link on the home page that takes a user to the contacts.html page,


Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
9
Given the following directory tree structure, provide a link on the entryForm.html page that takes a user to the home page,


Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
10
Provide the code for a link that jumps to a web page at "http://www.martiancolonies.com". The link should display an appropriate label.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
11
Which of the following must you do to enable a user to download a file?
A) Implement a <code>download</code> element with an <code>href</code> attribute that specifies the filename.
B) Implement a <code>download</code> element with a <code>file</code> attribute that specifies the filename.
C) Implement a link with the <code>a</code> element and include a <code>download</code> attribute.
A) Implement a <code>download</code> element with an <code>href</code> attribute that specifies the filename.
B) Implement a <code>download</code> element with a <code>file</code> attribute that specifies the filename.
C) Implement a link with the <code>a</code> element and include a <code>download</code> attribute.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
12
An <code>a</code> element's <code>href</code> attribute specifies a resource that is to be linked to. If the <code>href</code> attribute uses a relative URL, that means the browser will look for the resource:
A) on a web server that is different from the current web page's web server.
B) on the current web server, but on a web page different from the current web page.
C) within the current web page.
A) on a web server that is different from the current web page's web server.
B) on the current web server, but on a web page different from the current web page.
C) within the current web page.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
13
In organizing a website's links, a linear structure is good for:
A) presenting a long article.
B) websites with multiple second-level pages that serve as starting points for different areas within your website.
C) websites that need to be highly accessible.
A) presenting a long article.
B) websites with multiple second-level pages that serve as starting points for different areas within your website.
C) websites that need to be highly accessible.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
14
What goes in a navigation bar?
A) A group of links that enable users to link to other pages
B) Elements with <code>id</code> attributes that are targets of links
C) Nougat and a delicious chocolatey center
A) A group of links that enable users to link to other pages
B) Elements with <code>id</code> attributes that are targets of links
C) Nougat and a delicious chocolatey center
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
15
Line wrap is when text at the end of a long line wraps to the next line, where it displays without any indentation.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
16
A home page directory must be on the web server's hard drive root directory.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
17
It is legal to have more than one <code>index.html</code> file within a website's directory tree structure as long as the files are in separate directories.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
18
If a web page contains an element with an <code>id</code> attribute, the <code>id</code> attribute's value must be unique for all elements on the web page.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
19
When implementing links on a web page, you should normally avoid using the default colors for the links.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
20
By default, browsers use purple to display links that have been clicked recently. They are formally known as ______ links.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
21
When implementing links on a web page, which CSS rule should you use to disable underlining for the links?
A) link {font-variant: plain;}
B) a {font-variant: plain;}
C) link {text-decoration: none;}
D) a {text-decoration: none;}
A) link {font-variant: plain;}
B) a {font-variant: plain;}
C) link {text-decoration: none;}
D) a {text-decoration: none;}
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
22
If an a element's target attribute has a value of _self, that means the browser will:
A) overlay the current web page with the target web page.
B) open the target web page in a new browser window or in a new tab within the current browser window.
C) open the target web page in the current web page's parent document.
A) overlay the current web page with the target web page.
B) open the target web page in a new browser window or in a new tab within the current browser window.
C) open the target web page in the current web page's parent document.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
23
If an a element's target attribute has a value of _blank, that means the browser will:
A) overlay the current web page with the target web page.
B) open the target web page in a new browser window or in a new tab within the current browser window.
C) open the target web page in the current web page's parent document.
A) overlay the current web page with the target web page.
B) open the target web page in a new browser window or in a new tab within the current browser window.
C) open the target web page in the current web page's parent document.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
24
Which of the following image file formats is the most appropriate for limited-color images such as line drawings, icons, and cartoon-like illustrations?
A) BMP
B) TIFF
C) GIF
D) JPEG
A) BMP
B) TIFF
C) GIF
D) JPEG
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
25
Which img attribute provides a fallback mechanism for the browser to fall back on if the image cannot be displayed?
A) The access attribute
B) The alt attribute
C) The fallback attribute
A) The access attribute
B) The alt attribute
C) The fallback attribute
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
26
Which of the following is one of the primary advantages of vector graphics images over bitmap images?
A) It is relatively easy to find free vector graphics image files.
B) Vector graphics image files can handle high-resolution pictures very effectively.
C) If you resize a vector graphics image, no degradation occurs.
A) It is relatively easy to find free vector graphics image files.
B) Vector graphics image files can handle high-resolution pictures very effectively.
C) If you resize a vector graphics image, no degradation occurs.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
27
How would you display an SVG file's image within a web page?
A) Surround the SVG code fragment with <svg> and </svg> tags.
B) Use the img element with a src attribute.
C) Use a <link> element with a src attribute.
A) Surround the SVG code fragment with <svg> and </svg> tags.
B) Use the img element with a src attribute.
C) Use a <link> element with a src attribute.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
28
How would you display an image using an SVG code fragment?
A) Surround the SVG code fragment with <svg> and </svg> tags.
B) Use the img element with a src attribute.
C) Use a <link> element with a src attribute.
A) Surround the SVG code fragment with <svg> and </svg> tags.
B) Use the img element with a src attribute.
C) Use a <link> element with a src attribute.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
29
Within a bitmap image file, every pixel gets mapped to a particular color value, and each color value is a sequence of bits.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
30
SVG stands for ______ Vector Graphics.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck