LIS 2360 Final Exam

Ace your homework & exams now with Quizwiz!

When you code a jQuery selector, you use - the JavaScript syntax - the jQuery syntax - the CSS syntax - the HTML syntax

the CSS syntax

If one wants to format the content in the div id="container" section, what should the selector be? - #container - div container - id = container - .container

#container

Which of the following selectors is most specific? - .nav - #nav - a - div

#nav

The code that follows padding: .5em 0 .25em; applies this padding to an element: - .5em above, 0 left, and .25em below - .5em above, 0 left and right, and .25em below - .5em above and below, 0 right, and .25em left - .5em above, 0 right, and .25em below

.5em above, 0 left and right, and .25em below

To style the div class="main" element, _____ is used as the selector.​ - #main - .main - %main - :main

.main

Which of the following is a valid selector for a class named menu? - #menu - menu - .menu - >menu

.menu

An embedded style sheet includes the style sheet within the _____ tags of the HTML document.​ - <head> and <head> - <body> and </body> - <html> and </html> - <style> and </style>

<head> and <head>

​_____ is a language used to describe the formatting of a document written in a markup language such as Hypertext Markup Language (HTML) 5. - Segregation Style Sheets - Web paging Style Sheets - Cascading Style Sheets - Designing Style Sheets

Cascading Style Sheets

A navigation bar is a list of links using <ol> and <li> elements. - True - False

False

External styles defeat the purpose and advantages of separating style from content, so they should be used sparingly.​ - True - False

False

The sides of the Cascading Style Sheets (CSS) box model is referred to in counter clockwise order: left, right, bottom, and top. - True - False

False

The valid values for the float property are top and bottom, indicating where to display (or float) the element. - True - False

False

_________ are small pictures displayed alongside web page titles on browser tabs. - Snapshots - Pixar - Clipart - Favicons

Favicons

It is best to use relative font sizes specified with em or % in order to support accessible design. - True - False

True

The following css ruleset is used to remove all default margin and padding for every object on the page. This provides a nice clean slate for design and ensures that all spacing is intentional, explicit, and ubiquitous across browsers. * { margin: 0; padding: 0; } - True - False

True

To build a vertical navigation bar, the display property is set to block so that whole link area is clickable (not just the text) and it allows us to specify the width. - True - False

True

When an image is floated to the right or left of elements containing text content, the effect is to wrap the text around the image. - True - False

True

When you use an external style sheet with an HTML document, you get all but one of the benefits that follow. Which one is it? - You provide consistent formatting for all of the pages that use the style sheet - You can modify the formatting for all of the related pages by changing one style sheet - Your CSS coding is simpler - You separate the CSS code from the HTML code

Your CSS coding is simpler

To apply the styles in an external style sheet to an HTML document, you need to code - a style element in the head section - a link element in the head section - a style attribute for the body element - a link attribute for the body element

a link element in the head section

When you code a jQuery event handler, you include - a selector and the name of an event method - a selector and the name of the function that handles the event - a selector, the name of an event method, and the name of the function that handles the event - the name of an event method and the name of the function that handles the event

a selector, the name of an event method, and the name of the function that handles the event

Which of the following units is a relative unit of measurement? - a pixel - a point - a number - an em

an em

The _____ separates the padding and the margin of a block element. - footer - separator - border - header

border

The _____ property can be used to remove the float effect if one does not want text to wrap around an image.​ - padding - text-align - display - clear

clear

Which of the following is NOT one of the ways that you can specify a color in CSS? - color: white; - color: #cd5c5c; - color: getColor("red"); - color: rgb(50%, 25%, 25%);

color: getColor("red");

jQuery is a library that - consists of methods that are written with Java - is automatically loaded with a web page - consists of methods that are written with JavaScript - can be loaded into a web page from a JavaScript Delivery Network

consists of methods that are written with JavaScript

An _____ style sheet is used to create styles that apply to more than one webpage in a website.​ - external - internal - inline - embedded

external

The _____ property allows the positioning of an element to the right or left of other elements.​ - float - display - text-align - margin

float

The _____ rule centers an h1 element.​ - h1 { align: center; } - h1 { text-align: center; } - <h1/> { align: center; } - <h1> text-align: center</h1>;

h1 { text-align: center; }

The style rule used to set the same font family property and values for the header, nav, and footer elements is _____. - {header, nav, footer}<font-family: Calibri, Arial, sans-serif/> - header, nav, footer <font-family/>Calibri, Arial, sans-serif; - <header/><nav/>< footer/> { font-family: Calibri, Arial, sans-serif; } - header, nav, footer {​ font-family: Calibri, Arial, sans-serif; }

header, nav, footer {​ font-family: Calibri, Arial, sans-serif; }

Which type of selector applies to only one element? - class - id - type - child

id

JavaScript is commonly used to modify the contents of a web page - in response to a user action - in response to web server actions - when the images of a page are loaded - when the page is loaded

in response to a user action

JavaScript is a scripting language that runs - in the JavaScript compiler of the browser - in the JavaScript engine of the browser - in the JavaScript engine of the web server - in the JavaScript compiler of the web server

in the JavaScript engine of the browser

The span tag (<span>) and the anchor tag (<a>) are examples of _____ elements.​ - header - nav - block - inline

inline

In the box model for an element, the border - is outside the content - is outside the margin - is inside the padding - is between the padding and the margin

is between the padding and the margin

What value should the CSS list-style-type property be set to to remove the bullets? - disc - square - none - inherit - circle

none

To implement the 12-column grid concept, you use - template areas - named lines - none of these - numbered lines

numbered lines

In the declaration part of the Cascading Style Sheets (CSS) rule, the _________ identifies the style quality or characteristic to apply, such as color (text color), background-color, text-indent, border-width, or font-style. - link - selector - value - property

property

In the context of font size measurement units, the unit _________ is used for printing webpages. - em - % - pt - px

pt

The _____ attribute of a link element uses the stylesheet value to indicate that a document is linked to a style sheet.​ - span - lnk - href - rel

rel

One of the benefits of using a browser's developer tools to inspect the styles that are applied to an HTML document is that you can - see all the elements in the HTML file - see all the styles for an HTML document - see how the styles from the current style sheet are applied to the HTML elements - see how the styles from one source override the styles from another source

see how the styles from one source override the styles from another source

Each Cascading Style Sheets (CSS) rule consists of a _________, which is the part of the statement that identifies what element you wish to style. - value - link - property - selector

selector

The ______ is an example of an inline element(s). - main - footer - header - span

span

A _____ is a rule that defines the appearance of an element on a webpage.​ - cascade - syntax - semantic - style

style

When you set the float property for an img element to left, - the image floats to the right of the block elements that precede it - the block elements that follow it flow to the right of it - the block elements that follow it flow to the left of it - the image floats to the left of the block elements that precede it

the block elements that follow it flow to the right of it

If more than one style rule is applied to an element, which style rule is applied? - the one with the highest ranking selector type - the one with the selector that has the highest specificity - the one that's specified last - the one that's specified first

the one with the selector that has the highest specificity

In the code that follows margin: 0 auto; the auto keyword means - to automatically adjust the margins for the element whenever necessary - to automatically align the element based on the size of the browser window - to center the element vertically within the containing block - to center the element horizontally within the containing block

to center the element horizontally within the containing block

When you code a font-family property in a style rule, - you usually use a universal selector - the font applies only to the elements specified by the selector - you can specify more than one font name - you must specify either a serif or non-serif font

you can specify more than one font name

Which of the following is NOT a way to include JavaScript in the HTML for a web page? - embed JavaScript in a script element in the head section - embed JavaScript in a script element in the body section - use an embed element to load an external JavaScript file - use a script element to load an external JavaScript file

use an embed element to load an external JavaScript file

To align webpage content, the _________ property is set to a percentage to specify how much of the page to use for content. - height - width - body - style

width


Related study sets

Chapter 12 Nursing Management During Pregnancy

View Set