MINDTAP Tutorials Quick Check 2.1, 2.2, 2.3, 3.1, 3.2, 3.3, 4.1, 4.2, 4.3, 5.1

MINDTAP Tutorials Quick Check 2.1, 2.2, 2.3, 3.1, 3.2, 3.3, 4.1, 4.2, 4.3, 5.1

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

Provide the style rule to display block quote text in red using an RGB triplet.

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

1

All-time users

1

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (87)

Section 1

(50 cards)

Provide the style rule to display block quote text in red using an RGB triplet.

Front

blockquote {color: rgb(255, 0, 0);}

Back

Provide a style rule to change the width property for the header element so that it measures the total width of the header content, padding, and border spaces. Include web extensions for older browsers.

Front

header { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }

Back

Provide a style rule to set the width of the page body to 90% of the browser window ranging from 320 pixels up to 960 pixels.

Front

body { min-width: 320px; max-width: 960px; width: 90%; }

Back

Provide a style rule to horizontally center the header element within the body element. Assume that the header is a direct child of the page body.

Front

body > header { margin-left: auto; margin-right: auto; }

Back

Describe the items selected by the following selector: div.Links img[usemap]

Front

All img elements containing the usemap attribute within the div element belonging to the Links class.

Back

What keyword do you add to a style property to override style precedence and style inheritance?

Front

!important

Back

Provide a style rule to set the height of a navigation list with the id nav1 to 300 pixels but to be displayed with a scrollbar if there are too many entries to fit within the navigation list's boundaries.

Front

nav#nav1 { height: 300px; overflow: auto; }

Back

Provide a style rule to place the div element with the id graph1 50 pixels to the right and 15 pixels down from the top-left corner of its container element.

Front

div#graph1 { position: absolute; top: 15px; left: 50px; }

Back

Provide a style rule to display all unordered lists using the star.png image file, placed inside the virtual box.

Front

ul { list-style-image: url(star.png); list-style-position: inside; }

Back

Provide a style rule to display the footer element only after all floated elements have cleared.

Front

footer { clear: both; }

Back

The initial h1 heading in a document has the ID top. Provide a style rule to display the text of this h1 heading in Century Gothic, Helvetica, or a sans-serif font.

Front

h1#top { font-family: Century Gothic, Helvetica, sans-serif; }

Back

What must be true about a container element to have objects positioned absolutely within it?

Front

It must have a position property of relative or absolute.

Back

Create a style that adds a 2 pixel green dotted outline around all block quotes in the document.

Front

blockquote { outline: 2px dotted green; }

Back

What is the difference between relative positioning and absolute positioning?

Front

Relative positioning shifts an object from its default placement in the document flow but it remains part of the document flow. Absolute positioning places the object at specified page coordinates and takes it out of the document flow.

Back

Provide the style rule to set the padding around every h1 heading in a section element to 1em on top, 0.5em on the left and right, and 2em on the bottom.

Front

section h1 { padding: 1em 0.5em 2em; }

Back

Provide a style rule to display all unordered lists with lowercase letters as the list marker.

Front

ul {list-style-type: loweralpha;}

Back

Provide a style rule to remove underlining from the hypertext links marked with the <a> tag and nested within a navigation list.

Front

nav a { text-decoration: none; }

Back

Provide the code to enter the style comment "Tri and Succeed Sports Color Styles".

Front

/ Tri and Succeed Sports Color Styles / _______________________________________________________ ____________________________________(you can't see it correctly so go here: https://www.adcconsultants.net/html2/Session2_5quickcheck.html) Answer 3

Back

For the following style rules, what is the font size of the h1 heading in pixels? body {font-size: 16px;} body > article {font-size: 0.75em;} body > article > h1 {font-size: 1.5em;}

Front

24px (found it out on my own)

Back

Your layout has four floated elements in a row but unfortunately the last element has wrapped to a new line. What is the source of the layout mistake?

Front

The widths of the floated elements exceed the available width of their container.

Back

What is the difference between a fixed grid and a fluid grid?

Front

In a fixed grid, the grid dimensions use absolute units such as pixels, while with a fluid grid, the dimensions are based on percentages and will change in response to changes in the screen size.

Back

Provide a style rule to shift the aside element 5% to the right and 10% down from its default position in the document flow?

Front

aside { position: relative; top: 10%; left: 5%; }

Back

In a proposed grid, the columns all have the class names "span-integer" where integer indicates the size of the column. Create a style rule to float every grid column on the left margin.

Front

div[class^='span-'] { float: left;}

Back

Provide the style rule to change the left margin of the figure element to 20 pixels.

Front

figure {margin-left: 20px;}

Back

Provide a selector to match all address elements that are direct children of the footer element.

Front

footer > address { }

Back

Based on the following style rule for paragraph text, which style property will be used by an older browser that supports only CSS2? p { color: rgb(232, 121, 50); color: hsla(23, 80%, 55%, 0.75); }

Front

color: rgb(232, 121, 50);

Back

In a proposed grid, all of the grid rows have the class name container. Create a style rule to expand those grid rows around their floating columns.

Front

div.container { content: ""; display: table; clear: both;}

Back

What is lorem ipsum?

Front

Placeholder text used in page design prior to having readily-available text content.

Back

An inline image with the id logo_img is 400 pixels wide by 300 pixels high. Provide a style rule to clip this image by 10 pixels on each edge.

Front

img#log_img { clip: rect(10, 390, 290, 10);

Back

Provide a style rule to display the text of all previously visited hypertext links in gray.

Front

a:visited {color: gray;}

Back

Provide a style rule to display h1 and h2 headings with a background color of yellow (an equal mixture of red and green at highest intensity with no blue) at 70% opacity.

Front

h1, h2 {background-color: rgba(255, 255, 0, 0.7);}

Back

Create a style rule to set the width of columns belonging to the span-4 class to 25% of the row width.

Front

div.span-4 { width: 25%;}

Back

Provide a style rule to set the size of body text to 2% of the viewport width.

Front

body { font-size: 2vw; }

Back

Taken from another website that was crappy. You're Welcome! created 9-12-18

Front

(Fuq this Online Sh!t) Please post the MINDTAP - Case Problems if you can.

Back

What are inline styles, embedded styles, and external style sheets? Which would you use to define a design for an entire web site?

Front

Inline styles are styles applied directly to specific element using the style attribute. Embedded styles are added to a specific HTML file using the style element in the document head. External style sheets are files containing CSS style rules that are linked to an HTML file or files. To provide designs for an entire website, use external style sheet files.

Back

Provide a style rule to set the width of the aside element to 240 pixels and to float on the right margin of its container.

Front

aside { width: 240px; float: right; }

Back

Provide the @font-face rule to create a web font named Cantarell based on the font files cantarell.woff and cantarell.ttf.

Front

@font-face { font-family: Cantarell; src: url(cantarell.woff) format('woff'), url(cantarell.ttf) format('ttf'); }

Back

What is a CSS framework?

Front

A CSS framework is a software package that provides a library of tools to design your website, including style sheets for grid layouts and built-in scripts, in order to provide support for a variety of browsers and devices.

Back

Provide the style property to set the opening quotation mark and closing quotation marks to curly quotes with Unicode values of 2018 and 2019 respectively.

Front

quotes: "\2018" "\2019"

Back

Create a style rule for the grid rows described in question 3 above so that their sizes are measured using the Border Box model.

Front

div.container, div[class^='span-'] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }

Back

Using the proposed specifications for CSS-based grids, create a grid for the body element that has three rows with heights automatically defined by the page content and five columns with widths of 25%, 2.5%, 50%, 2.5%, and 20%. Place the nav element in the first column, the article element in the third column, and the aside element in the fifth column.

Front

body { display: grid; grid-template-rows: auto auto auto; grid-template-columns: 25% 2.5% 50% 2.5% 20%; } nav { grid-column: 1; } article { grid-column: 3; } aside { grid-column: 5; }

Back

Provide a style rule to prevent the header element from collapsing around its floating content.

Front

header { clear: both; content: ""; display: table; }

Back

Provide a style rule to horizontally center all h1 through h6 headings and to display their text with normal weight.

Front

h1, h2, h3, h4, h5, h6 { text-align: center; font-weight: normal; }

Back

Provide a style rule to display all blockquote elements belonging to the Reviews class in italic and indented 3em.

Front

blockquote.reviews { font-style: italic; text-indent: 3em; }

Back

The color chartreuse is located at 90° on the color wheel with 100% saturation and 50% lightness. Provide a style rule to display address text in black with chartreuse as the background color.

Front

address {background-color: hsl(90, 100%, 50%);}

Back

Briefly describe the three types of page layouts.

Front

A fixed layout is one in which the size of the page and the size of the page elements are fixed, usually using pixels as the unit of measure. A fluid layout sets the width of page elements based on a percent of the available width. An elastic layout is one in which all measurements are expressed in em units and are based on the default font size used in the page.

Back

Describe the item selected by the following selector: #top > p:first-of-type:first-line

Front

The first line of the first paragraph within the element with the id "top"

Back

Provide the style rule to display all hypertext links within a navigation list as block elements with a gray background.

Front

Nav a { display: block; background-color: gray; }

Back

Provide a style rule to insert the text string "*" before every paragraph belonging to the Review class.

Front

p.Review::before { content:

Back

What is progressive enhancement?

Front

A CSS technique in which styles that conform to older standards are entered first with newer standards placed last. HTML 104

Back

Section 2

(37 cards)

Provide code to create a circular hotspot centered at the coordinates (150, 220) with a radius of 60 pixels, linked to the help.html file.

Front

<area type="circle" coords="150, 220, 60" href="help.html" />

Back

Provide the code to create a link element that loads the talk.css style sheet for aural browsers.

Front

<link href="talk.css" media="speech" />

Back

Create a style rule to set the opacity of all inline images to 75%.

Front

img { opacity: 0.75; }

Back

Provide a style rule to use the graphic image file border.png as a solid border for the article element. Set the size of the image slice to 30 pixels and stretch the sides to match the sides of the element. Assume a border width of 10 pixels.

Front

article { border-width: 10px; border-style: solid; border-image: url(border.png) 30 stretch; }

Back

Provide code to create a figure box containing the logo.png image file, no alt text, and a caption with the text Tree and Book.

Front

<figure><img src="logo.png" alt="" /><figcaption>Tree and Book</figcaption> </figure>

Back

Provide the filter to increase the brightness of an object by 20%.

Front

filter: brightness(1.2);

Back

What is the difference between a vector image and a bitmap image?

Front

A vector image is an image in which the lines and curves that comprise the image are based on mathematical functions, while a bitmap image is comprised of individual pixels set to specific colors.

Back

Provide the transformation to rotate an object 30° counter-clockwise around the x-axis.

Front

transform: rotateX(-30deg);

Back

Provide a style rule to add elongated corners with a 5-pixel gray inset border around the aside element and with a horizontal radius of 10 pixels and vertical radius of 5 pixels.

Front

aside { border: 5px inset gray; border-radius: 10px/5px; }

Back

Create a style rule for the header element that fills the header background with tiled images of the back.png, but only over the element content.

Front

header { background-image: url(back.png); background-repeat: repeat; background-clip: content-box; }

Back

Provide the general syntax of a CSS rule that loads style rules for braille devices.

Front

@medial braille { style rules }

Back

Add an inset gray shadow to all footers; the shadow should be offset by 10 pixels to the left and 15 pixels down with a blur of 5 pixels.

Front

footer { box-shadow: gray inset 10px -15px 5px;}

Back

What is the difference between using the perspective property and using the perspective function?

Front

You use the perspective property when you want to apply the same perspective to all objects within a container; and use the perspective function to set the perspective for a single object.

Back

Provide code to add a red text shadow to all h1 headings; the shadow should be offset 5 pixels to the left and 10 pixels down with a blur of 7 pixels.

Front

h1 { text-shadow: red -5px 10px 7px; }

Back

Provide a style rule to display the logo.png and side.png image files in the top-left corner of the page body's background. Do not tile the logo.png image, but tile the side.png image vertically. Design your style rule so that logo.png appears on top of the side.png. For the rest of the page body, set the background color to ivory.

Front

body { background: url(logo.png) top-left no-repeat, url(side.png) top-left repeat-y, ivory; }

Back

Provide code for a linear gradient that moves in the direction of the lower-left corner of the element through the colors: orange, yellow, and green.

Front

linear-gradient(to left bottom, orange, yellow, green}

Back

What is the difference between the visual viewport and the layout viewport?

Front

The visual viewport displays the Web page content that fits within mobile screen and the layout viewport contains the entire content of the page, some of which may be hidden from the user.

Back

Add a gray box shadow to all aside elements; the shadow should be placed 2 pixels to the left and 5 pixels above the element with a blur of 10 pixels.

Front

aside { box-shadow: gray -2px -5px 10px; }

Back

Create a linear gradient that moves at a 15 degree angle with the color orange stopping at 10% of the background, yellow stopping at 50%, and green stopping at 55%.

Front

linear-gradient(15deg, orange 10%, yellow 50%, green 55%)

Back

Provide a style rule to add a 3-pixel solid blue border around the header element with rounded corners of 15 pixels.

Front

header { border: 3px solid blue; border-radius: 15px; }

Back

Create a repeating circular gradient of orange, yellow, and green bands centered at the right edge of the element with the colors stopped at 10%, 20%, and 30% respectively.

Front

repeating-radial-gradient(circle at right center, orange 10%, yellow 20%, green 30%)

Back

Provide the code that sets the width of the layout viewport equal to the width of the device with an initial scale factor of 1.

Front

<meta name="viewport" content="width=device-width, initial-scale=1.0" />

Back

What are the three primary parts of responsive design theory?

Front

Flexible layouts, Responsive or Rescaleable images, and Media queries.

Back

Revise the following img element to attach it to the mapsites image map: < img src="logo.png" alt=""/>

Front

<img src="logo.png" usemap="#mapsites" alt="" />

Back

Create a radial gradient that extends to the farthest background corner, going through the colors orange, yellow, and green.

Front

radial-gradient(farthest-corner, orange, yellow, green); }

Back

One element has a z-index value of 1; a second element has a z-index value of 5. Will the second element always be displayed on top of the first? Explain why or why not.

Front

Only if they share the same parent; otherwise if they are in different containers the z-indexes do not refer to the same stacking order.

Back

Provide a style rule to add a 5-pixel dotted brown border around the aside element.

Front

aside { border: 5px dotted brown; }

Back

Provide the code to use the sidebar.png file as the background image for the page body. Have the image placed in the top-left corner of the page and tiled only in the horizontal direction.

Front

body { background: url(sidebar.png) left top repeat-x;}

Back

What is responsive design?

Front

Its about using HTML and CSS to automatically resize, hide, shrink, or enlarge, a website, to make it look good on all devices (desktops, tablets, and phones)

Back

Provide the code for a link element that loads the tablet.css style sheet for screen devices whose width ranges from 480 pixels up to 780 pixels (inclusive).

Front

Start with base styles, followed by styles for mobile devices, then styles for tablet devices, and ending with the media query for desktop device styles.

Back

Provide the transformation to reduce the horizontal and vertical size of an object by 50%.

Front

transform: scale(0.5, 0.5);

Back

Create a red halo effect around the main element with no shadow offset, a blur of 15 pixels and a shadow size that is 10 pixels larger than the element.

Front

main { box-shadow: red 0px 0px 15px 10px;}

Back

How should you arrange the media queries in your style sheet if you want to support mobile, tablet, and desktop devices?

Front

(This answer might be wrong, who knows. Got it from here: https://www.w3schools.com/css/css_rwd_mediaqueries.asp) @media only screen and (max-width: 768px) { / For mobile phones: / [class*="col-"] { width: 100%; } @media only screen and (min-width: 600px) { / For tablets: / .col-s-1 {width: 8.33%;} .col-s-2 {width: 16.66%;} .col-s-3 {width: 25%;} .col-s-4 {width: 33.33%;} .col-s-5 {width: 41.66%;} .col-s-6 {width: 50%;} .col-s-7 {width: 58.33%;} .col-s-8 {width: 66.66%;} .col-s-9 {width: 75%;} .col-s-10 {width: 83.33%;} .col-s-11 {width: 91.66%;} .col-s-12 {width: 100%;} } @media only screen and (min-width: 768px) { / For desktop: / .col-1 {width: 8.33%;} .col-2 {width: 16.66%;} .col-3 {width: 25%;} .col-4 {width: 33.33%;} .col-5 {width: 41.66%;} .col-6 {width: 50%;} .col-7 {width: 58.33%;} .col-8 {width: 66.66%;} .col-9 {width: 75%;} .col-10 {width: 83.33%;} .col-11 {width: 91.66%;} .col-12 {width: 100%;} }

Back

Provide the filter to decrease the contrast of an object to 70% of its default value and to change the hue by 180°.

Front

filter: contrast(0.7) rotate-hue(180deg);

Back

Provide the transformation to shift a page object 5 pixels to the right and 10 pixels up.

Front

transform: translate(5px, -10px);

Back

Provide the general syntax of a CSS rule that loads style rules for screen devices up to a maximum width of 780 pixels.

Front

<link href="tablet.css" media="screen and (min-width: 480px and max-width: 780px) />

Back

Provide the code to create a triangular hotspot with vertices at (200, 5), (300, 125), and (100, 125), linked to the info.html file.

Front

<area type="poly" coords="200, 5, 300, 125, 100, 125" href="info.html" />"

Back