Section 1

Preview this deck

What does the following do? -HTML--HEAD--TITLE-Some quotations-/TITLE- -STYLE type="text/css"- BLOCKQUOTE.example { background : green } -/STYLE--/HEAD- -BODY-Here is a quote from "Hamlet" -BLOCKQUOTE class="example" id="example-1"> To be or not to be, that is the question -/BLOCKQUOTE- and here is a quote from G. Marx -BLOCKQUOTE class="example" id="example-2"> I would never belong to an organization that would have me as a member -/BLOCKQUOTE--/BODY--/HTML-

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

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (60)

Section 1

(50 cards)

What does the following do? -HTML--HEAD--TITLE-Some quotations-/TITLE- -STYLE type="text/css"- BLOCKQUOTE.example { background : green } -/STYLE--/HEAD- -BODY-Here is a quote from "Hamlet" -BLOCKQUOTE class="example" id="example-1"> To be or not to be, that is the question -/BLOCKQUOTE- and here is a quote from G. Marx -BLOCKQUOTE class="example" id="example-2"> I would never belong to an organization that would have me as a member -/BLOCKQUOTE--/BODY--/HTML-

Front

The browser outputs the following: _______________________________________________ |Here is a quote from "Hamlet" | |------------------------------------------ | |To be or not to be, that is the question | | ------------------------------------------ | |and here is a quote from G. Marx | |------------------------------------------ | |I would never belong to an organization | |that would have me as a member | |------------------------------------------ | The text in the ---- box is green.

Back

What are the different forms of selectors?

Front

. #

Back

The speech media describes that is ________.

Front

-intended for speech synthesizers

Back

What is cascading?

Front

It is combining style information from multiple sources, called cascading. There is a defined order of precedence where the definitions of a style element conflict.

Back

Colors can be set using _____________.

Front

RGB values or predefined color names.

Back

Values assigned to ID and CLASS are ___________

Front

case sensitive

Back

True or False. A class style has higher precedence than an inline one.

Front

False. Styles defined using a "style" attribute (inline) have highest precedence.

Back

What HTML tag do you use to include style information?

Front

<STYLE> element, style attribute

Back

If inline style has the highest precedence, then where does <STYLE> element and the external file lie on precedence?

Front

The styles defined using <STYLE> element have next highest precedence. Then styles defined in a separate file, e.g. special.css, have lowest precedence.

Back

What is the pseudo-class, visited for?

Front

- a link the user has visited: can specify a color for visited link

Back

What can you use to assign style properties independent of the document tree?

Front

Pseudo elements and classes.

Back

Style sheets can be used to specify what?

Front

- the amount of white space between text or between lines, - the amount lines are indented, - the colors used for the text and the backgrounds - the font size and style of text - the precise position of text and graphics - How front matter (preface, figure list, title page, and so forth) should look - How all or individual sections should be laid out in terms of space (for example, two newspaper columns, one column with headings having hanging heads, and so forth)

Back

___________ rule preceded by "_" and applied to single elements

Front

ID #

Back

The projection media describes that is _______.

Front

-Intended for projected presentations

Back

The handheld media describes that its _______.

Front

-Intended for handheld devices (typically small screen, monochrome, limited bandwidth).

Back

Give an example of an inline style attribute with: font-size: 20pt background: green color: fuchsia

Front

-BODY style="font-size: 20pt; background: green; color: fuchsia"> The nine planets of the solar system ... -/BODY-

Back

What does the DOCTYPE directive do?

Front

Instructs modern browsers to work in 'standards compliant mode - Your web page will look the same in all browsers - Browsers turn off their proprietary extensions - Fonts are rendered in the same way - For example, font-size: small, is rendered the same size on all browsers

Back

The embossed media describes that its _______.

Front

-Intended for paged braille printers.

Back

What are the pseudo-classes?

Front

-link, visited, hover, active

Back

The all media describes that its ________.

Front

-Suitable for all devices

Back

What does the following code snippet do? P.special { color : green; border: solid red; } -HTML--HEAD- -LINK href="special.css" rel="stylesheet" type="text/css"- -/HEAD--BODY- -P class="special">This paragraph should be displayed with green text and red border. -/BODY--/HTML-

Front

The css stylesheet is linked to the HTML document with the LINK element.The special.css sets the text color of a paragraph to green and surrounds it with a solid red border.

Back

What are the different media types?

Front

all, braille, embossed, handheld, print, projection, screen, speech, tty, tv, 3d-glasses

Back

Which HTML tag do you use to point to external sheets?

Front

<LINK>

Back

The screen media describes that is ________.

Front

-Intended primarily for color computer screens.

Back

A style for _______ has higher precedence than one for _______, which has higher precedence than a style for the ______ itself.

Front

-tag.class -.class -tag

Back

What does HTML extensions permit?

Front

- flexible placement of style information - independence from any particular style sheet language

Back

True or False. Style element can only be used in the body tags.

Front

False. <STYLE> element is placed in the <HEAD>

Back

The tv media describes that is ______.

Front

-Intended for television-type devices (low resolution, color, limited-scrollability screens, sound available).

Back

What is the pseudo-class, hover for?

Front

- a link when the user mouses over it: can specify a color for mouse over link. Selects links on mouse over.

Back

What is the difference between a Class and ID attribute?

Front

Both the class and ID attributes are used for optional styles but the ID can only be used ONCE in the entire document. ID attribute is normally used for major document sections- Header, Footer, TopNav, LeftNav, and Content.

Back

What is the pseudo element, first-letter for?

Front

-add a special style to the first letter of a text

Back

The braille media describes that its _______.

Front

-Intended for braille tactile feedback devices.

Back

What does .redtext{color: #FF0000} do?

Front

It applies to all elements that use CLASS=redtext.

Back

What is the pseudo class, first-child for?

Front

-Selects every <p> elements that is the first child of its parent

Back

How does the precedence of style settings work with css?

Front

The more precise a specification is, the higher the precedence.

Back

What is the pseudo-class, link for?

Front

- a normal, un-visited link: can specify a color for unvisited link

Back

What does P.redtext {color: #FF0000} do?

Front

The color would be applied when <P> containing the redtext name. <P CLASS="redtext">some text</P>

Back

What is the pseudo class, lang for?

Front

-selects every <p> element with a lang attribute

Back

Describe the order of precedence of the following: - H1 { text-align: center} - .biggreen {text-align: center} - H1.mypars {text-align: center}

Front

H1.mypars {text-align: center} [highest] .biggreen {text-align: center} [next] H1 { text-align: center} [lowest]

Back

The tty media describes that is _________.

Front

-Intended for media using a fixed-pitch character grid, such as teletypes, terminals, or portable devices with limited display capabilities.

Back

What is the pseudo-class, active for?

Front

- a link the moment it is clicked: can specify a color for selected link

Back

What is the pseudo element, first-line for?

Front

-add a special style to the first line of a text

Back

What happens if you do not specify !DOCTYPE?

Front

if you do not specify a !DOCTYPE, browsers work in 'Quirks' mode.

Back

__________ rule preceded by "_" and applied to multiple elements

Front

Class .

Back

_________ can be used as a selector of style properties.

Front

Class

Back

What is the pseudo class, focus for?

Front

-selects the input element which has the focus

Back

The 3d-glasses describes that is ______.

Front

-Intended for 3D Glasses like Oculus VR and Google Cardboard.

Back

What does STRONG { color: #00FF00} do compared to P STRONG { color: #00FF00}?

Front

All the occurrences of <STRONG> as green, but P STRONG defines only <STRONG> within a <P> as green.

Back

The Class attribute ______________.

Front

assigns a name to one or more elements.

Back

The print media describes that is _________.

Front

-Intended for paged, opaque material and for documents viewed on screen in print preview mode.

Back

Section 2

(10 cards)

What is the pseudo element, before for?

Front

-to insert some content before the content of an element

Back

Style sheets are often used for _______ & for changing the look-and-feel.

Front

branding

Back

What is the goal of a reset stylesheet?

Front

The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on.

Back

Why are CSS Vendor Prefixes used?

Front

CSS vendor prefixes or CSS browser prefixes are a way for browser makers to add support for new CSS features during a testing and experimentation period. Browser prefixes are used to add new features that may not be part of a formal specification and to implement features in a specification that hasn't been finalized

Back

What is the Box Model?

Front

Each box has a content area (e.g., text, an image, etc.) and optional surrounding padding, border, and margin areas. The Margin is transparent. The content is in the middle, surrounded by padding. Then there's the border and the margin lies outside it.

Back

Every browser has its own ____________ stylesheet, that it uses to make unstyled websites appear more legible. For example, most browsers by default make links blue and visited links purple, give tables a certain amount of border and padding, apply variable font-sizes to H1, H2, H3 etc. and a certain amount of padding to almost everything.

Front

-default user agent

Back

What are the categories for CSS3 features?

Front

Borders, Backgrounds, Text Effects, Fonts, 2D Transforms, 3D Transforms, Transitions, Animations, Multiple Columns, User Interface

Back

What is a CSS Reset?

Front

A CSS Reset is a short, often compressed (minified) set of CSS rules that resets the styling of all HTML elements to a consistent baseline.

Back

What are the CSS browser prefixes for the following: Android, Chrome, Firefox, Internet Explorer, iOS, Opera, Safari?

Front

- Android: -webkit- - Chrome: -webkit- - Firefox: -moz- - Internet Explorer: -ms- - iOS: -webkit- - Opera: -o- - Safari: -webkit-

Back

What is the pseudo element, after for?

Front

-to insert some content after the content of an element

Back