Web Design Midterm

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

1/56

flashcard set

Earn XP

Description and Tags

Last updated 11:19 PM on 10/29/23
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

57 Terms

1
New cards

CSS

Cascading Style Sheet

2
New cards

What does CSS do?

Controls the color, typography, and layout of single or multiple web pages.

3
New cards

What are the types of stylesheets?

external, embedded, inline, and imported

4
New cards

the cascade

browser default, external styles, embedded styles, inline styles

5
New cards

How are inline styles coded and where do they apply?

In the body of a web page as an attribute of an HTML tag and they apply only to the specific element that contains it.

6
New cards

How are embedded styles coded and where do they apply?

In the head of a web page and they apply to only that web page.

7
New cards

How are external styles coded and where do they apply?

In a separate file and they apply to the entire web site by coding a link in the head section.

8
New cards

What are the rules or parts of a style sheet?

selector, declaration property, and declaration value

9
New cards

How many CSS selectors are there? Name them.

Four; element/tag, class, id, descendant

10
New cards

What are the components of the class selector and what does it apply to?

It must begin with a dot and a letter. It may have numbers, hyphens, and underscores. Can’t have spaces. It applies to the entire web site document.

11
New cards

What are the components of the id selector and what does it apply to?

It must begin with a hash. It may have letters, numbers, hyphens, and underscores. Can’t have spaces. It applies to a single area of a web page and can only be used once.

12
New cards

What is the use of a descendant selector?

It specifies an element within its parent element and can be used to configure CSS for specific areas of a web page.

13
New cards

Configure inline CSS

<h1 style=”color": #000000”></h1>

14
New cards

Configure embedded CSS

<style>

body { background-color: #000000; }

</style>

15
New cards

How to configure an external stylesheet? (hint: html)

<link rel=”stylesheet” href “color.css”>

16
New cards

Configure CSS class selector for HTML and CSS

.feature { background-color: #000000; } <body class=”feature”></body>

17
New cards

Configure id CSS selector for HTML and CSS

#feature { background-color: #000000; } <body id=”feature”></body>

18
New cards

Configure descendant CSS selector

header h1 {background-color: #000000; }

19
New cards

What is the span element and where does it apply?

It applies style to a section of a web page without empty space above and below. It is only applied to elements inline.

20
New cards

Configure a span element

<h1><span class=”feature”>Page Title Goes Here</span></h1>

21
New cards

List 10 CSS properties

background color, background-image, background-repeat, background-size, color, font-size, font-family, font-weight, width, height.

22
New cards

4 types of formats for web graphics

GIF, JPEG, PNG, WebP

23
New cards

GIF

Graphics Interchange Format

24
New cards

Characteristics of GIF

For line art and logos, max 256 colors, can be animated and interlaced, supports transparency, uses lossless compression

25
New cards

JPEG

Joint Photographic Experts Group

26
New cards

Characteristics of JPEG

For photos, max 16.7 million colors, can’t be animated, progressive jpeg, doesn’t support transparency, and uses lossy compression.

27
New cards

PNG

Portable Network Graphics

28
New cards

Characteristics of PNG

Combines best of gif and jpeg. Supports millions of colors, multiple levels of transparency, interlacing, and uses lossless compression. APNG extension supports animation.

29
New cards

Characteristics of WebP

Supports millions of colors, transparency, animation, and lossy and lossless. Does not support interlacing.

30
New cards

configure image element

<img src=”home.gif” alt=”Home” width=”100” height=”20”>

31
New cards

Configure image link

<a href=”index.html”><img src=”home.gif” alt=”Home” width=”100” height=”20”></a>

32
New cards

Configure background image

body {background-image: url(background.gif); }

33
New cards

Configure background image to be displayed on the left down

body { background-image: url(background.gif);
background-image: repeat-y; }

34
New cards

Configure background image to be displayed on the top

body {background-image: url(background.gif);
background-repeat: repeat-x; }

35
New cards

font family categories

serif, sans-serif, monospace, cursive, fantasy

36
New cards

font-size units

text value, em, px, pt, and percentage

37
New cards

List 10 CSS text properties

font-family, font-size, font-weight, font-style, text-align, text-decoration, text-indent, text-transform, line-height, letter-spacing.

38
New cards

Configure multiple background images

background-image: url(background.gif); background repeat: no-repeat; background: url(background1.gif) no-repeat left bottom, url(background2.gif) no-repeat; }

39
New cards

List common text-decoration values

none, underline, overline, line-through

40
New cards

List text-transform values

none, capitalize, uppercase, lowercase

41
New cards

List letter-spacing values

normal, px, em

42
New cards

List text-align values

left, right, center, justify

43
New cards

List font-style values

normal, italic, oblique

44
New cards

List marker properties

list-style-type, list-style-image, list-style-position

45
New cards

List-style-type values

none, disc, circle, square, decimal, upper-alpha, lower-alpha, lower-roman

46
New cards

List-style-position values

outside, inside

47
New cards

Configure favicon ICO

<link rel=”icon” href=”favicon.ico” type=”image/x-icon”>

48
New cards

Configure favicon GIF, PNG, JPG

<link rel=”icon “href=”favicon.gif” type=”image/ico”>

49
New cards

Configure figure caption

figcaption { font-weight: bold; font-style: italic; font-family: Arial, Helvetica, sans-serif; font-size: 1 em; }

50
New cards

Configure figure in html

<figure><img src=”home.gif” alt=”Home” width=”200” height=”20”><figcaption>Home</figcaption></figure>

51
New cards

List background-clip and background-origin property values

content-box, padding-box, border-box

52
New cards

normal flow

displays the elements on the web page in the order they appear in the web page source code

53
New cards

List overflow property values

visible, hidden, auto, scroll,

54
New cards

universal selector

*, used to target all html elements

55
New cards

List display property values

none, inline, inline-block, flex, grid

56
New cards

CSS pseudo classes

linked, visited, focus, hover, active

57
New cards

List position properties

static, relative, sticky, fixed, absolute