CS 110 Web Development - Quiz 2

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

1/59

flashcard set

Earn XP

Description and Tags

HTML, Forms, Events, and Javascript

Last updated 7:55 PM on 4/29/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

60 Terms

1
New cards

selector

styling for tag, no period

2
New cards

external style sheet

browser can cache so performance improved

3
New cards

class selector

.

4
New cards

id selector

#, id can only be used once per page

5
New cards

attribute selector

[], select presence of element attribute or by value of attribute

6
New cards

pseudo-element selector

select something that doesn’t exist as an element in HTML, but is recognizable (ex. div p { … })

7
New cards

contextual selector

select elements based on ancestors/descendants/siblings (ex. #main div p first-child { … } is first p in a div in something with id = main)

8
New cards

dynamic interactivity

allowed using plugins, applets, and extending HTML into programming language

9
New cards

plugin

code loaded into browser using API, browser/platform specific, security problems

10
New cards

applets

Java programs downloaded and run by browser, security problems

11
New cards

client-side scripting advantages

processing off-loaded from server to cilent, brower can respond faster to user events, better user experience

12
New cards

client-side scripting disadvantage

Javascript is messy and hard to debug, unexpected behavior on different browsers

13
New cards

AJAX

Asynchronous Javascript And XML, performs asynchronous data requests

14
New cards

Javascript in head

runs immediately as browser parses itJ

15
New cards

Javascript in body

runs after HTML content has fully loaded

16
New cards

Javascript defer attribute

runs after page is fully parsed, even if in head

17
New cards

Javascript variables

dynamically typedd

18
New cards

dynamically typed

variable can be integer, then later a string, then later an object

19
New cards

const scope

function, block, can’t be reassigned

20
New cards

let scope

function, block, and can be reassigned

21
New cards

var scope

global, function, and can be reassigned

22
New cards

Javascript loops

for, for/in, while, do/while

23
New cards

Javascript error

throws exception, stops Javascript engine

24
New cards

try-catch block

catches errors and prevents disruption

25
New cards

Javascript objects support

constructors, properties, and methods

26
New cards

Javascript objects don’t support

inheritance and polymorphism

27
New cards

arrays

behave more link linked lists, behave differently amongst browsers, push and pop

28
New cards

window object corresponds to

browser itself

29
New cards

window object accesses

current URL, history, status bar, opening new window

30
New cards

DOM

document object model, interface that allows interaction and dynamic changes to document

31
New cards

DOM node

each element in HTML document, individual branch of tree

32
New cards

DOM document object

root Javascript object representing entire HTML document

33
New cards

modifying DOM element

innerHTML property

34
New cards

Javascript event

action that can be detected by Javascript (mouse, keyboard, form, frame)

35
New cards

listeners

onclick() & addEventListener()

36
New cards

form interaction with server

user requests server → browser returns HTML w/ form → user fills form and submits → requests server → form data sent inside request → server processes form data

37
New cards

form action attribue

specifies URL of server-side that will process form data

38
New cards

form method attribute

specifies how the query string data will be transmitted from the browser to server → GET and POST

39
New cards

GET

less secure, data can be seen in address bar & bookmarked & cached

40
New cards

POST

more secure, data hidden from user, can be binary data

41
New cards

var access before declaration

undefined

42
New cards

let access before declaration

ReferenceError

43
New cards

const access before declaration

ReferenceError

44
New cards

var redeclaration

allowed

45
New cards

let redeclaration

SyntaxError

46
New cards

const redeclaration

SyntaxError

47
New cards

var reassignment

allowed

48
New cards

let reassignment

allowed

49
New cards

const reassignment

TypeError

50
New cards

promise

object created to represent result of async operation

51
New cards

promise lifecycle

in pending → operation completes, considered settled → either is fufilled or rejected

52
New cards

AJAX user interaction

async, users can interact while new data is being requested

53
New cards

AJAX method

  1. Javascript makes request object, initializes it, and send it to the server (page can continue)

  2. server responds with contents of file or output of program

  3. response arrives, Javascript function triggered

  4. Javascript function refreshes display using DOM, avoids refresh of entire page

54
New cards

backend

part of AJAX application that resides on web server, could be file or program

55
New cards

XMLHttpRequest object

backbone of AJAX method, can send info. using GET and POST to the server

56
New cards

fetch returns a

promise

57
New cards

a fetch promise is fufilled with a

response object

58
New cards

selector, selector, selector

list of elements that style will target

59
New cards

selector1 selector2

elements that have selector 2 inside selector 1

60
New cards

async function returns a

promise