Javascript 2 shortened escaped

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/66

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.

67 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?

CSS changes without touching HTML

7
New cards

How does Separation of Concerns help accessibility?

Cleaner semantic HTML

8
New cards

Semantic tag example?

<nav>

9
New cards

Semantic tag example 2?

<footer>

10
New cards

Semantic tag example 3?

<header>

11
New cards

Semantic tag example 4?

<main>

12
New cards

Semantic tag example 5?

<section>

13
New cards

Semantic tag example 6?

<article>

14
New cards

What is the CSS Box Model?

Element sizing and spacing

15
New cards

Box Model innermost part?

Content

16
New cards

Box Model padding?

Inner space

17
New cards

Box Model border?

Outline around padding

18
New cards

Box Model margin?

Outer space

19
New cards

What is the DOM?

Webpage tree structure

20
New cards

DOM allows?

JavaScript access and modification

21
New cards

getElementById returns?

One element

22
New cards

getElementsByClassName returns?

Multiple elements

23
New cards

IDs can repeat?

No

24
New cards

Classes can repeat?

Yes

25
New cards

Absolute path example?

https://example.com/image.png

26
New cards

Relative path example?

images/photo.jpg

27
New cards

Default CSS position?

static

28
New cards

Static position does?

Keeps element in normal flow

29
New cards

Position absolute does?

Removes element from flow

30
New cards

Absolute positioning relative to?

Nearest positioned ancestor

31
New cards

Low-fidelity prototype?

Simple sketch

32
New cards

Low-fidelity purpose?

Test layout and flow

33
New cards

High-fidelity prototype?

Detailed design

34
New cards

High-fidelity purpose?

Simulate final product

35
New cards

Bootstrap is?

CSS framework

36
New cards

Bootstrap advantage 1?

Faster development

37
New cards

Bootstrap advantage 2?

Responsive grid system

38
New cards

Bootstrap advantage 3?

Cross-browser consistency

39
New cards

Bootstrap grid columns?

12

40
New cards

Grid small screens?

Columns stack

41
New cards

Grid large screens?

Columns side by side

42
New cards

Prebuilt Bootstrap components?

Buttons, forms, navbars

43
New cards

Why prebuilt components?

Saves time

44
New cards

Meta tag example?

<meta name="viewport" content="width=device-width, initial-scale=1">

45
New cards

Responsive web design?

Works on all screens

46
New cards

Why responsive design?

Mobile usability

47
New cards

CSS media query?

Conditional CSS rule

48
New cards

Media query checks what?

Screen width or device

49
New cards

selector targets?

ID

50
New cards

. selector targets?

Class

51
New cards

Internal CSS location?

<head> inside <style>

52
New cards

External CSS location?

<head> using <link>

53
New cards

<head> role?

Metadata, title, CSS links

54
New cards

<head> visible?

No

55
New cards

<body> role?

Visible content

56
New cards

<body> content?

Text, images, links

57
New cards

Local variable?

Inside function

58
New cards

Local variable scope?

Local

59
New cards

Local variable accessible where?

Only inside function

60
New cards

Example JS variable?

var x = 5;

61
New cards

Example JS function?

function myFunc() { console.log(x); }

62
New cards

JS string example?

var str = "Hello";

63
New cards

JS curly braces escaped?

{ }

64
New cards

HTML <script> escaped?

<script> JS code </script>

65
New cards

HTML <style> escaped?

<style> CSS rules </style>

66
New cards

HTML <link> escaped?

<link rel="stylesheet" href="style.css">

67
New cards

HTML <meta> escaped?

<meta name="viewport" content="width=device-width, initial-scale=1"&gt