Day 1 M Flashcards

1
Q

How does Javascript makes thing interactive

A

By accessing and modifying the content of the page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do javascript access content

A

To select any content from the HTML like h1 tags

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do javascript modify content

A

adding elements, attributes, and text to the page, or removing them
changing CSS after clicks,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are program rules

A

rules which allow to access or change the

content of a page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A mortgage calculator could collect
values from a form, perform a
calculation, and display repayments.

A

Example of program rules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Pressing a button

A

Reacting to the event

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Slide shows on a webpage

A

Having number of different images within same page in a sequence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Forms

A

Validating forms:

Alerting the user if they entered the wrong email or did a typo while entering the phone number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Reloading just the part of the page

A

Finding the part using tags and just reloding that section

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Filtering data

A

Making filters like high to low, or pink color only on shopping websites

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

HTML elements

A

An element has opening, the content to display and the closing tag

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

< p>

A

Paragraph opening tag

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

< /h1>

A

Heading closing tag

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

CSS rules

A

Rules indicating how the HTML content should be displayed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

.samosa {
background-color: yellow
}

A

Here .samosa is a selector
background-color is property name
yellow is property value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly