Computer Applications
Answer
HTML code to create the form elements is given below:
<HTML>
<HEAD>
<TITLE>Pizza Selection</TITLE>
</HEAD>
<BODY>
<FORM>
Pizza Size : <BR>
<INPUT TYPE = "RADIO" ID = "R1" NAME = "SIZE" VALUE = "SMALL" />
<LABEL FOR = "R1"> Small </LABEL>
<BR>
<INPUT TYPE = "RADIO" ID = "R2" NAME = "SIZE" VALUE = "MEDIUM" CHECKED/>
<LABEL FOR = "R2"> Medium </LABEL>
<BR>
<INPUT TYPE = "RADIO" ID = "R3" NAME = "SIZE" VALUE = "LARGE" />
<LABEL FOR = "R3"> Large </LABEL>
<BR>
<INPUT TYPE = "SUBMIT" NAME = "Process Order" VALUE = "Click to order Pizza" />
<INPUT TYPE = "RESET" NAME = "Clear" VALUE = "Click to Clear" />
</FORM>
</BODY>
</HTML>
Related Questions
Define the following attributes associated with the
<INPUT>tag:i. Type
ii. Value
iii. Size
Describe the Cols attribute and Rows attribute of the
<TEXTAREA>tag.Shagun wants to customize the width and height of the textarea in her form. How can she do it?
In the examination, Suparna has been asked to write the code for placing a drop-down list in the form area. She is also asked to indicate any one of the menu items as preselected. Help her in solving the problem.
