Search Header Logo

QUIZ 1 - HTML & Javascript

Authored by ser firdaus

Computers

University

Used 30+ times

QUIZ 1 - HTML & Javascript
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which is used to create a submission button?

<button type="submit">Submit Here</button>

There is no way to make a submission button.

<input type="submit">

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Consider the following code for a text box in a Web form:
<input type="text" name="UserName"/>
Which modified tag should you use if you want the text box to appear with default text that reads "Enter Name Here"?

<input type="text" name="UserName" value="Enter Name Here"/>
<input type="name" text="Enter Name Here" value="text"/>
<input type="area" value="default" text="UserName"/>
<input type="text" name="UserName" default="Enter Name Here"/>

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which line of HTML code creates a scrolling text box that can display three rows of text that are each 30 characters long?

<input type="textarea" name="comments" width="30" rows="3"/>
<input type="text" name="comments" chars="30" rows="3"/>
<text name="comments" width="30" rows="3">
<textarea name="comments" cols="30" rows="3">

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

In the Web form you are creating, you want a multiple-option select list to appear with five options. Which line of HTML code will help accomplish this?

<input type="select" name="work" multiple="yes" default="5"/>
<select name="work" multiple="multiple" size="5">
<select name="work" size="5">
<input type="multiselect" name="work" default="5"/>

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

In an HTML form, what is the purpose of the name attribute in an <input> tag?

It identifies the form input received in a name=value pair by the site's administrator.
It is required for the form to render in all browsers.
It labels the form field so the user knows the type of input expected.
It identifies the type of field or button that will appear in the form.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

<input type="checkbox"> is used

for selecting zero or more of many choices
for selecting one of many choices
for submitting the form
for selecting all of the choices

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The ___________ element is used to group related data in a form.

<option>
<fieldset>
<input type>
<form>

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?