1.

Carefully observe the following labeled screenshot and answer the questions that follow:(a) Identify the form element labeled as 1 and 2? (b) Why has the form element labeled as 2 used to input the Address? (c) Write HTML code to create the form element labeled as 3.(d) Differentiate between the form element labeled 3 and the form element labeled 4.(e) How can any one item be highlighted in the Dropdown box labeled as 5? 

Answer»

(a) Form element labeled as 1 is a Textbox and Form element labeled as 2 is a Textarea.

(b) Text areas are the fields that display multiple text lines at a time hence it has been used to accept Address which also contains multiple lines of text.

(c)   <input type="radio" name="Ltype" value="DND">Do Not Disturb <br>

<input type="radio" name="Ltype" value="Vib"> VIBRATE <br>

<input type="radio" name="Ltype" value="Act">Active<br>

(d)  Form element labeled as 3 is a Radio button .It enables the selection of one of the options out of the many.

Whereas, Form element labeled as 4 is a Checkbox. As compared to radio button, a checkbox allows for multiple selections of items.

 To highlight one item in a dropdown box ,“selected” clause is used in the

<Option selected>

Eg:

<select>

<option>SINGAPORE</potion>

<option selected>JAPAN </option>

<option selected>MALAYSIA</option>

</select>



Discussion

No Comment Found

Related InterviewSolutions