Test 2 Study Guide Flashcards

1
Q

How do you create an image that is also a link?

A

<a><img></img></a>

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

How do you create an image that is also a link?

A

<a><img></img></a>

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

How you you create a table in HTML?

**

A

This is the header

The tr is the table row, and the td is cell data

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

What is colspan?

*****

A

this means that the header will span across two columns AKA the top

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

What is rowspan?

***

A

this means that the row will span two rows

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

Name the elements needed in an image map?

A

<img></img>

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

How do you make a textbox in HTML?

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

How do you make a textbox in HTML?

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

How you you create a table in HTML?

**

A

This is the header

The tr is the table row, and the td is cell data

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

What is colspan?

*****

A

this means that the header will span across two columns AKA the top

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

What is rowspan?

***

A

this means that the row will span two rows

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

Name the elements needed in an image map?

A

<img></img>

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

How do you make a button in HTML?

*****

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

How do you make a textbox in HTML?

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

Where can alerts and prompts go?

A

in the script or in an event handler

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

How do you code for an alert?

A

alert(“What you want to say here”)

17
Q

How do you code for a prompt?

A

Name=prompt(“Enter your name here”)

18
Q

What are the javaScript comments?

A

/* */ or //

19
Q

Give an example of a concatenation?

A

alert (x+”Hello!”)

20
Q

What is parseFloat?

A

Parses a string and returns a number

21
Q

What are the relational operators and what do they mean?

A
==  equals 
>
<
>=
<=
!= not equals
22
Q

What are the logical operators and what do they mean?

A

&& and

II or

23
Q

Where do you put a .toLowerCase?

A

right behind the value

24
Q

What is a function?

A

A group of statements that can be invoked anywhere in your code

25
Q

what is a parameter?

A

Takes a value into a function

26
Q

Write a function that takes two parameters, one that represents an id and one that represents a calue that is a font size.

A

function test (x,y) {document.getElementById(“x”).style.fontSize=y}