Javascript 2

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

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.

26 Terms

1
New cards

What are the three layers in the Separation of Concerns?

  1. HTML (Structure), 2. CSS (Presentation), 3. JavaScript (Behaviour)

2
New cards

What is a primary benefit of Separation of Concerns for maintenance?

You can change the website’s appearance using CSS without changing HTML content or structure

3
New cards

How does Separation of Concerns help accessibility?

It keeps HTML clean and semantic, making it easier for screen readers to navigate

4
New cards

What are the four parts of the CSS Box Model from inside to outside?

Content, Padding, Border, Margin

5
New cards

What is padding in the CSS Box Model?

The space between an element’s content and its border

6
New cards

What is margin in the CSS Box Model?

The space outside the border that separates elements

7
New cards

What is the Document Object Model (DOM)?

A tree representation of a webpage that JavaScript can access and modify

8
New cards

What is the difference between getElementById and getElementsByClassName?

getElementById selects one unique element, getElementsByClassName selects multiple elements

9
New cards

What is an absolute path?

A full URL including the domain name, e.g. https://example.com/image.png

10
New cards

What is a relative path?

A file path based on the current folder location, e.g. images/photo

11
New cards

What is the default CSS positioning method?

static

12
New cards

What does position absolute do?

Removes the element from normal flow and positions it relative to the nearest positioned ancestor

13
New cards

What is a low-fidelity prototype?

A simple sketch or wireframe used to test layout and flow

14
New cards

What is a high-fidelity prototype?

A detailed, interactive design that closely resembles the final website

15
New cards

What is Bootstrap?

A front-end CSS framework used to build responsive websites faster

16
New cards

Name three advantages of using Bootstrap.

Faster development, responsive grid system, cross-browser consistency

17
New cards

What does a responsive grid mean in Bootstrap?

A column-based layout that automatically adapts to different screen sizes

18
New cards

What is the role of a meta tag in HTML?

It provides metadata such as descriptions or viewport settings for browsers and search engines

19
New cards

What is the main goal of responsive web design?

To ensure a website works well on all screen sizes

20
New cards

What is a CSS media query?

A rule that applies styles only when certain conditions like screen width are met

21
New cards

What does the # selector target in CSS?

An element by its unique ID

22
New cards

What does the . selector target in CSS?

Elements that share the same class name

23
New cards

Why is semantic HTML important (e.g.

,

)?

It adds meaning to structure, improving accessibility and SEO

24
New cards

What are the three ways to add CSS to a webpage?

Inline, Internal, External

25
New cards

What is the role of the tag?

It contains metadata, the page title, and links to CSS

26
New cards

What is the role of the tag?

It contains all visible webpage conte