Test 2 Study Guide Flashcards Preview

Computer Programming > Test 2 Study Guide > Flashcards

Flashcards in Test 2 Study Guide Deck (26):
1

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

2

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

3

How you you create a table in HTML?
********


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

4

What is colspan?
*****

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

5

What is rowspan?
*******

this means that the row will span two rows

6

Name the elements needed in an image map?




7

How do you make a textbox in HTML?

8

How do you make a textbox in HTML?

9

How you you create a table in HTML?
********


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

10

What is colspan?
*****

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

11

What is rowspan?
*******

this means that the row will span two rows

12

Name the elements needed in an image map?




13

How do you make a button in HTML?
*****

14

How do you make a textbox in HTML?

15

Where can alerts and prompts go?

in the script or in an event handler

16

How do you code for an alert?

alert("What you want to say here")

17

How do you code for a prompt?

Name=prompt("Enter your name here")

18

What are the javaScript comments?

/* */ or //

19

Give an example of a concatenation?

alert (x+"Hello!")

20

What is parseFloat?

Parses a string and returns a number

21

What are the relational operators and what do they mean?

== equals
>
<
>=
<=
!= not equals

22

What are the logical operators and what do they mean?

&& and
II or

23

Where do you put a .toLowerCase?

right behind the value

24

What is a function?

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

25

what is a parameter?

Takes a value into a function

26

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

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