CIT 40 MIDTERM CH. 1-6

¡Supera tus tareas y exámenes ahora con Quizwiz!

The code that follows padding: .5em 0 .25em; applies this padding to an element:

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

Which of the following is a CSS class selector?

.first_line

which of the following is a valid selector for a class named menu?

.menu

If the bottom margin for one element is 1.5em and the top margin for the element below it is 1em, how large is the margin between the two elements when the page is rendered in a browser?

1.5em

Which of the following is an ending tag for an h1 element

</h1>

Three inline elements are

<q>, <a>, and img

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?

Jeffrey Toobin

Which of the following is NOT one of the ways that you can specify a color in CSS?

color: getColor("red");

The <a> element that follows <a href="update.html">Update</a>

displays "Update" as a link

When you comment out a portion of HTML code, you disable it by

enclosing it within these characters: <!-- and -->

CSS is used to

format the HTML elements of a webpage

Which of the following is a CSS type selector?

h1

if you want to apply styles to all <p> elements that are siblings of an h1 element, how do you code the selector?

h1~p

The code that follows <p id="copyright" class="base_color">Copyright 2018</p>

has two attributes in an empty tag

which type of selector applies to only one element?

id

The <a> element that follows goes to a web page <a href="books/javscript.html">JavaScript and DOM Scripting</a>

in a folder that is subordinate to the current page

in the box model for an element, the border

is between the padding and the margin

When the code that follows is loaded into the browser, <h2>About this book</h2>

it displays "About this book" in the default h2 format

if you want to apply styles to all of the li elements within a main element, how do you code the selector?

main li

The code that follows border-style: solid none; means that the box should have

solid top and bottom borders

By default, the <br> tag

starts a new line of text

when you set the position property for a block element to absolute, the browser

takes the element out of the flow of elements on the web page

The title element in the head section of an HTML document specifies the text

that's displayed in the browser's tab for the page

If you right-click on a web page and select View Source or View Page Source,

the HTML for the page will be displayed

In HTML, you can code a Boolean attribute as

the attribute name, an equals sign, and on or off

when you set the border for a block element, you can set

the color, style, and width

The RGBA and HSLA colors that are available with CSS3 let you specify

the opacity of the color

HTML is used to define

the structure and contents of a web page

When you use the float property for page layout, you should also set

the width and height of the floated elements

In the code that follows margin: 0 auto; the auto keyword means

to center the element horizontally within the containing block

The text-decoration property in a style rule is commonly used

to remove underlines from links

To load a web page into a web browser, you can

type the URL of the web page into the browser's address bar

Which of the following selectors applies to all <a> elements with "hot" as their class name that are coded within a div element that has "header" as its id?

#header a.hot

which of the following selectors is most specific?

#nav

Google publishes a web browser named

Chrome

To deploy a website, you use

FTP

to format a web page, you use

FTP

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?

It shows that its contents are used for navigation.

To apply the styles in an external style sheet to an HTML document, you need to code

a link element in the head section

Within a CSS style rule, a declaration consists of

a property and a value

What character entity is created by the &nbsp; character?

a space

Which of the following units is a relative unit of measurement?

an em

Which of the following units of measurement is equal to the font size for the current font?

an em

What kind of tag is this? <img src="logo.gif" alt="Murach Logo">

an empty tag

In HTML, a numbered list is coded with

an ol element that contains li elements

By default, which type of element is displayed on a new line?

block elements

Which CSS snippet would set the border radius for a section element as shown in this screenshot?

border-radius: 10px 20px 0 20px;

Which CSS snippet would set the border shadows for a section element as shown in this screenshot?

box-shadow: 3px 3px 4px 4px red;

Three of the common CSS selectors select

by element type, id attribute, and class attribute

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

will be preceded by bullets


Conjuntos de estudio relacionados

جيوووولوجبا : شرح الباب ال ابع الحصة الاولي

View Set

Chapter 2 Life Insurance Questions

View Set

Workbook: Chapters 11, 17, 18, 19, 22, 23, 24,

View Set

ACG challenging questions (exam 1)

View Set

Chapter 8 Supporting Hard Drives

View Set