Javascript 2 (short)

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/68

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

69 Terms

1
New cards

What is Separation of Concerns?

Separating structure, style, and behaviour

2
New cards

Which language handles structure?

HTML

3
New cards

Which language handles presentation?

CSS

4
New cards

Which language handles behaviour?

JavaScript

5
New cards

Why use Separation of Concerns?

Easier maintenance

6
New cards

How does Separation of Concerns help updates?

Style can change without touching content

7
New cards

How does Separation of Concerns help accessibility?

Cleaner semantic HTML

8
New cards

What is semantic HTML?

HTML with meaning

9
New cards

Give one semantic tag.

10
New cards

Another semantic tag?

11
New cards

Another semantic tag?

12
New cards

Another semantic tag?

13
New cards

Another semantic tag?

14
New cards

Another semantic tag?

15
New cards

Why use semantic tags?

Adds meaning to HTML

16
New cards

What does semantic HTML help with?

Accessibility and SEO

17
New cards

What is the CSS Box Model?

Element sizing and spacing

18
New cards

What is the innermost part?

Content

19
New cards

What surrounds content?

Padding

20
New cards

What surrounds padding?

Border

21
New cards

What surrounds border?

Margin

22
New cards

What does padding do?

Adds space inside element

23
New cards

What does margin do?

Adds space outside element

24
New cards

What is the DOM?

Webpage tree structure

25
New cards

Why is the DOM important?

Allows JavaScript to access and modify elements

26
New cards

What does getElementById return?

One element

27
New cards

Why only one element?

IDs must be unique

28
New cards

What does getElementsByClassName return?

Multiple elements

29
New cards

What is an absolute path?

Full URL with domain

30
New cards

Example of absolute path?

https://example.com/image.png

31
New cards

What is a relative path?

Path based on current folder

32
New cards

Example of relative path?

images/photo.jpg

33
New cards

Default CSS position?

static

34
New cards

What does static positioning do?

Keeps element in normal flow

35
New cards

What does position absolute do?

Removes element from flow

36
New cards

Absolute positioning is relative to?

Nearest positioned ancestor

37
New cards

What is a prototype?

Model to test design

38
New cards

What is low-fidelity prototype?

Simple sketch or wireframe

39
New cards

Why use low-fidelity prototypes?

Test layout and flow quickly

40
New cards

What is high-fidelity prototype?

Detailed interactive design

41
New cards

Why use high-fidelity prototypes?

Mimics final product

42
New cards

What is Bootstrap?

CSS framework

43
New cards

Why use Bootstrap?

Faster development

44
New cards

What does Bootstrap provide?

Prebuilt components

45
New cards

What is Bootstrap’s grid?

Column layout system

46
New cards

How many columns in Bootstrap grid?

12

47
New cards

What happens on small screens in Bootstrap grid?

Columns stack vertically

48
New cards

What happens on large screens in Bootstrap grid?

Columns sit side by side

49
New cards

What is cross-browser consistency?

Same behaviour across browsers

50
New cards

What is a meta tag?

Page metadata

51
New cards

Where is meta tag placed?

52
New cards

What does viewport meta tag do?

Controls scaling on devices

53
New cards

What is responsive web design?

Website works on all screens

54
New cards

Why is responsive design needed?

Mobile usability

55
New cards

What is a CSS media query?

Conditional CSS rule

56
New cards

What conditions do media queries check?

Screen width or device type

57
New cards

What does # selector target?

ID

58
New cards

What does . selector target?

Class

59
New cards

Can multiple elements share a class?

Yes

60
New cards

Can multiple elements share an ID?

No

61
New cards

Where is internal CSS placed?

inside
62
New cards

Where is external CSS linked?

using
63
New cards

What is the role of ?

Metadata, title, CSS links

64
New cards

Is visible?

No

65
New cards

What is the role of ?

Visible content

66
New cards

What content goes in ?

Text, images, links

67
New cards

What is a local variable?

Declared inside a function

68
New cards

What scope does a local variable have?

Local

69
New cards

Where can a local variable be accessed?

Only inside the functi