Pop Quiz

1. What tag would you enter to create a text input box with the name "Phone"?

2. What property would you enter to create a Phone input box that is 10 characters wide?

3. What property would you enter to limit entry to the Phone input box to no more than 10 characters?

4. What tag would you enter to create an input box named "Subscribe" with a default value of "yes"?

5. How would you prevent the contents of an input box from being displayed on the user's computer screen?

 

(Answers down below)

 

HINT: There are a couple of exam questions similar to these . . .

 

 

 

 

 

ANSWERS:

1. What tag would you enter to create a text input box with the name "Phone"?

                    <INPUT NAME=PHONE>

 

 

 

 

2. What property would you enter to create a Phone input box that is 10 characters wide?

                    <INPUT NAME=PHONE SIZE=10>

 

 

 

3. What property would you enter to limit entry to the Phone input box to no more than 10 characters?

                    <INPUT NAME=PHONE SIZE=10 MAXLENGTH=10>

 

 

 

4. What tag would you enter to create an input box named "Subscribe" with a default value of "yes"?

                    <INPUT NAME=Subscribe VALUE="Yes">

 

 

 

5. How would you prevent the contents of an input box from being displayed on the user's computer screen?

Set the TYPE property to PASSWORD. Example:  <INPUT TYPE=PASSWORD>