Exam 2 Review

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/49

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:11 PM on 3/21/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

50 Terms

1
New cards

Cascading Style Sheet

What CSS stands for

2
New cards

change appearance of a website

Main usage of CSS

3
New cards
  • maintainability (separate form from content)

  • code verbosity (only one file)

  • efficiency (styles for multiple devices)

Three benefits of CSS

4
New cards
  • External

  • Internal

  • In-line

Three ways to style HTML from least to most specific

5
New cards

The most specific

If using multiple ways of styling an HTML file, which will get priority?

6
New cards

External styling

written in files that end in .css, can affect multiple HTML files, least specific

7
New cards

Internal styling

Written inside the HTML file, only effects one HTML file, uses the <style> tag, medium specificity

8
New cards

In-line styling

Written inside a single HTML tag, only effects that tag, uses a style=”” attribute, has the most specificity

9
New cards
<link rel="stylesheet" type="text/css" href="something.css">

(Coding) How to link HTML to a CSS file

10
New cards
  • rel

  • type

  • href

<link> three required attributes

11
New cards

selectors

In HTML, they are called tags, in CSS, they are called:

12
New cards

properties

In HTML, they are called attributes, in CSS, they are called (ex. height, width):

13
New cards
*{
	margin: 0;
	box-sizing: border-box;
}

(Coding) The universal selector, what goes at the start of every CSS file

14
New cards

Override browser’s spacing

Purpose of margin: 0; in universal selector

15
New cards

Prevent styling distortions

Purpose of box-sizing: border-box; in universal selector

16
New cards

margin

refers to the spaces outside of an HTML tag

17
New cards

padding

refers to the spaces inside of an HTML tag

18
New cards

All directions are affected

For margin and padding, 1 value in a property means:

19
New cards

Up-down, left-right

For margin and padding, what is the order of property modification with 2 values?

20
New cards

Up, left-right, down

For margin and padding, what is the order of property modification with 3 values?

21
New cards

Up, right, down, left

For margin and padding, what is the order of property modification with 4 values (hint: clockwise)?

22
New cards

display: block;

How to make an inline element display as a block element

23
New cards

display: inline;

How to make a block element display as an inline element

24
New cards

margin: auto;

How to center block level elements

25
New cards

text-align: center;

How to center inline elements (only works from a parent tag)

26
New cards
ul li a{
}

(Coding) How to target specifically the <a> tag of a navigation menu

27
New cards
  • color names

  • hex codes

  • rgb and rgba codes

  • hsl and hsla codes

4 methods of adding color to CSS

28
New cards

#??????

Format of a hex code

29
New cards

rgb(redness[0-255], greenness[0-255], blueness[0-255], opacity[0-1])

Format of rgb/rbga code

30
New cards

hsl(hue[0-360], saturation[0-100%], lightness[0-100%])

Format of hsl codes

31
New cards

/*...*/

(Coding) how to leave comments in CSS

32
New cards
nav{
	padding: 1%;
}

nav ul{
	padding-left: 0;
	list-style: none;
}

nav li{
	display: inline;
	padding: 1%;
	border: 2px solid black;
}

nav a{
	text-decoration: none;
}

(Coding) How to turn a ul nav into what looks like buttons

33
New cards

text-transform: lowercase;

Property and value that will allow you to change all letters to lowercase

34
New cards

text-transform: capitalize;

Property and value that will allow you to capitalize the first letter of every word

35
New cards
  • serif

  • sans-serif

  • monospace

  • cursive

  • fantasy

Five generic font families

36
New cards

False

(T/F) When using the font-family attribute, you only need to reference one font.

37
New cards

Font stack

A list of fonts separated by commas, needed to provide options to users if their computers don’t support certain fonts

38
New cards
font-family: Arial, "Helvetica Neue", Helvitica, sans-serif;

(Coding) Example of a fonts stack

39
New cards

font-style, font-variant, font-weight, font-size, font-family

Shorthand of font property order

40
New cards

#

How to target an id in CSS

41
New cards

.

How to target a class in CSS

42
New cards

selector, parent/child, class, id

Order of selector specificity

43
New cards
  • create a clear visual hierarchy of contrast

  • define functional regions of the page

  • group the page elements that are related

Three purposes of graphic design

44
New cards

Usability

Making sure that something works well for people of average to below average ability

45
New cards

Whitespace

Should maybe be called empty space, area between elements

46
New cards

Responsive design

Website design changes when you change the size of the screen

47
New cards
img{
	max-width: 100%;
}

(Coding) How to make an image responsive

48
New cards
@media screen and (max-width: 900px) {
	#container{
		display: flex;
		flex-direction: column;
	}
	nav{
		width: 100%;
	}
	nav li{
		display: inline;
	}
	main{
		display: flex;
		flex-direction: column;
		width: 100%;
		justify-content: space-around;
		align-items: center;
	}
}
		

(Coding) A website is designed with a flex row layout, which does not look good on mobile devices. What is an example of a media query to change it to look good on mobile (assuming use of container and page-wrapper ids)?

49
New cards

%, vw, vh

Responsive units for values

50
New cards

calc(_px + _vw)

How to make font size responsive

Explore top notes

note
UNIT 3 APUSH
Updated 521d ago
0.0(0)
note
2.1 Population Distribution Notes
Updated 1174d ago
0.0(0)
note
Unit 1 notes LT 2: Lab Terms
Updated 1275d ago
0.0(0)
note
Operations Management
Updated 840d ago
0.0(0)
note
第一课 你周末有什么打算
Updated 1160d ago
0.0(0)
note
4.4-4.7 Presentation
Updated 109d ago
0.0(0)
note
UNIT 3 APUSH
Updated 521d ago
0.0(0)
note
2.1 Population Distribution Notes
Updated 1174d ago
0.0(0)
note
Unit 1 notes LT 2: Lab Terms
Updated 1275d ago
0.0(0)
note
Operations Management
Updated 840d ago
0.0(0)
note
第一课 你周末有什么打算
Updated 1160d ago
0.0(0)
note
4.4-4.7 Presentation
Updated 109d ago
0.0(0)

Explore top flashcards

flashcards
OS - teória
60
Updated 439d ago
0.0(0)
flashcards
7th Grade STAAR Vocabulary
56
Updated 351d ago
0.0(0)
flashcards
voc11
34
Updated 833d ago
0.0(0)
flashcards
Envol 5 - Unité 7
46
Updated 983d ago
0.0(0)
flashcards
BJU Physical Science Chapter 2
23
Updated 528d ago
0.0(0)
flashcards
Mandarin 3 Semester 1 Final
244
Updated 829d ago
0.0(0)
flashcards
OS - teória
60
Updated 439d ago
0.0(0)
flashcards
7th Grade STAAR Vocabulary
56
Updated 351d ago
0.0(0)
flashcards
voc11
34
Updated 833d ago
0.0(0)
flashcards
Envol 5 - Unité 7
46
Updated 983d ago
0.0(0)
flashcards
BJU Physical Science Chapter 2
23
Updated 528d ago
0.0(0)
flashcards
Mandarin 3 Semester 1 Final
244
Updated 829d ago
0.0(0)