Section 1

Preview this deck

Internal/Embedded style sheets may be used if

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 (109)

Section 1

(50 cards)

Internal/Embedded style sheets may be used if

Front

one page has unique style

Back

What style has the lowest priority

Front

browser default

Back

Selector are used to

Front

find/select elements

Back

When are inline styles used ?

Front

to apply unique style to a single starting element

Back

Write inline style to p to make it blue

Front

<p style = "color : blue">text phrase</p>

Back

An id selector selects elements using

Front

the id attribute

Back

3 ways to insert CSS

Front

external or internal style sheet, or inline style

Back

When can external style have priority over internal style

Front

If the internal style is defined before the link

Back

CSS stands for

Front

Cascading Style Sheets

Back

CSS describes

Front

how HTML elements are to be displayed

Back

Style a <p> to refer to class 'center' and class 'large'

Front

<p class = "center large"> text phrase </p>

Back

A declaration consists of (2)

Front

property and value

Back

Who has higher priority, external or internal style sheets

Front

internal

Back

What style has the highest priority

Front

inline style

Back

Border-width can have 1 to 4 values for each

Front

side (order is top, right, bottom, left)

Back

HTML was created to

Front

describe the content of a web page (no tags)

Back

What must be set to use other border properties

Front

border-style

Back

Rule to make all elements with class=center, red in color

Front

.center { color : red ; }

Back

CSS commands are called

Front

rules

Back

External style sheet allows you to change

Front

an entire website

Back

Why use CSS

Front

define styles for web pages and variations in different devices and screen sizes

Back

Multiple style sheet, which is has priority

Front

the last read style sheet

Back

Border-width can be specific size, or (3)

Front

thin, medium, or thick

Back

Declarations end with a

Front

semi-colon

Back

Border-style property can have 1 to 4 values (4)

Front

top border, right border, bottom border, left border

Back

Border-style property specifies kind of borders (3)

Front

solid, dotted, dashed, double, groove, ridge, inset

Back

Group selectors "h1" "h2" and "p"

Front

h1, h2, p { rule ; }

Back

CSS comments start and end with ?

Front

/* comment goes here */

Back

Internal/Embedded styles are located between ____ inside ___

Front

style tags inside the head section

Back

Rule that specifies all p tags with class = center

Front

p . center { }

Back

Border property let you specify (3)

Front

width, style, and color of the border

Back

CSS rules consist of 2 parts

Front

selector and declaration

Back

Properties and values are separated by

Front

colons

Back

Why not use inline style

Front

mixes content with presentation

Back

Where is the link element

Front

between the head tags

Back

What style method should be used sparingly

Front

inline

Back

Id="para" has a style rule of

Front

#para

Back

Declaration blocks are surrounded by

Front

curly braces

Back

What are the 3 attributes in a link tag

Front

rel, type, and href

Back

An element selector selects elements based on

Front

the element name

Back

Don't put ____ between a property value and its unit

Front

a space (20 px is wrong, 20px is correct)

Back

Selectors choose elements based on (4)

Front

element name, class, id, or attribute

Back

What element references to external style sheets

Front

<link> element

Back

Class selectors are preceded with a

Front

period (.)

Back

Rule for all p tags center-aligned with red text color

Front

p { text-align : center ; color : red ; }

Back

In {color:blue;}, which is the value

Front

blue

Back

External style sheets are stored in

Front

CSS files

Back

In {color:blue;}, which is the property

Front

color

Back

Id selectors are preceded with a

Front

hash tag (#)

Back

A class name CANNOT start with

Front

a number

Back

Section 2

(50 cards)

Can margins specify the side of an element

Front

yes (margin-top, margin-left, etc)

Back

If padding property has 4 values

Front

they cover top, right, bottom, left

Back

What is the command for rounded borders

Front

border-radius : 5px;

Back

If padding property has 1 value

Front

it is assigned to all 4 sides

Back

How set the maximum width of an element

Front

max-width

Back

max-length property can be set to (3)

Front

length, %, or none

Back

If border-style has 2 values

Front

top and bottom same, left and right same

Back

What is the command for border shorthand

Front

border : width style color;

Back

Margin properties are used to

Front

generate space around elements

Back

Height and width set the height/width of the

Front

area inside the padding, border, and margin of the element

Back

Can you have a negative value with margins

Front

no

Back

Margin collapse only affects

Front

top and bottom margins

Back

What value is associated with margin and not padding

Front

auto

Back

Padding puts space between

Front

the content and the border of an element

Back

If margin has 1 value

Front

values refer to all sides

Back

If margin is set to 'auto'

Front

element will use specified width, remaining space split equally between left and right margins

Back

What does "inherit" mean for margins

Front

margin is inherited from the parent element

Back

Height and width properties are used to set

Front

the height and width of an element

Back

If margin has 2 values

Front

values refer to top & bottom - left & right

Back

What property indicates top style for the border

Front

border-top-style: solid;

Back

How set margin for top of an element

Front

margin-top

Back

In border shorthand, what property is required

Front

style

Back

Margin properties set the size of

Front

the white space outside the border

Back

If border-style has 3 values

Front

top and bottom are valued, left & right the same

Back

If border-style has 4 values

Front

all 4 sides will be valued

Back

What value is missing from height and width

Front

inherit

Back

If border-color is not set, it ...

Front

inherits the color of the element

Back

If height and width use auto

Front

the browser calculates them

Back

Command for border shorthand left side only

Front

border-left : width style color;

Back

How do you set only the left margin

Front

margin-left: __px;

Back

If 'auto' is used with margins, the margin is set

Front

by the browser

Back

How do you only set the bottom margin

Front

margin-bottom: __px;

Back

What sides of an element accept padding

Front

all : top, right, bottom, left

Back

If height and width use %

Front

dimensions will be % of the containing block

Back

How do you specify padding for only the left side

Front

padding-left : __px;

Back

How do you specify padding for only the top

Front

padding-top : __px;

Back

If "%" is used with margins, "%" is the

Front

width of the containing element

Back

Margin collapse is when ...

Front

elements have adjoining margins and the smaller of the two is collapsed

Back

Border-color can have 1 to 4 values for each

Front

side (order is top, right, bottom, left)

Back

If border-style has 1 value

Front

all 4 sides are the same

Back

What are the values for padding (3)

Front

length, %, and inherit

Back

Height and width do not include

Front

padding, borders, or margins

Back

If padding property has 3 values

Front

they cover top, left and right, bottom

Back

Border-color can be set using (3)

Front

name, hex, or rgb

Back

If margin has 4 values

Front

values refer to top - right - bottom - left

Back

Margin shorthand uses values in what sequence

Front

top - right - bottom - left

Back

Margin properties can have the following values (4)

Front

auto, length, %, inherit

Back

If margin has 3 values

Front

values refer to top - right & left - bottom

Back

If padding property has 2 values

Front

they cover top and bottom, and left and right

Back

Values for height and width (3)

Front

auto, length, or %

Back

Section 3

(9 cards)

How do you set the minimum height

Front

min-height: __px;

Back

To calculate the full size of a block line element

Front

you must add width/height, padding, borders, and margins

Back

When you set the width and height of an element you

Front

set the width and height of the content area

Back

Total width of a block line element includes

Front

width + left padding + right padding + left border + right border + left margin + right margin

Back

Box model consists of (4)

Front

margins, borders, padding, and content

Back

Total height of a block line element includes

Front

height + top padding + bottom padding + top border + bottom border + top margin + bottom margin

Back

The value in max-width will overrides the value in

Front

width

Back

When the width of an element is greater that it container

Front

a scrollbar is created

Back

A max-width : none means

Front

there is no maximum width

Back