English

Given a form as shown below. Write code to get a form equivalent to this:

Advertisements
Advertisements

Question

Given a form as shown below. Write code to get a form equivalent to this:

Code Writing
Advertisements

Solution

<html>
<body>
<form id='sampleform' method='post' action=’’ >
    <p>
    Name: <input type='text’ name='Name' />
    </p>
    <p>
    Email: <input type=’text’ name=’Email' />
    </p>
    <p>
    <input type="checkbox" name="subscribe" checked />Subscribe to the News Letter
    </p>
    <p>
    Format of the Email :
    <p>
    <input type="radio" name="format" value="html" checked='checked' />HTML
    </p>
    <p>
    <input type="radio" name="format" value="text" />Plain Text
    </p>
    </p>
    <p>
    Type of subscription you want:
    <p>
    <select name="type">
       <option value="standard">Standard - Free</option>
       <option value="prof">Professional - Paid</option>
    </select>
    </p>
    </p>
    <p>
    Comments to the editor:<br/>
    <textarea name="comments" rows="7" cols="30"></textarea>
    </p>
    <p>
    <input type=’submit' name='Submit’ value='Submit' />
    </p>
</form>
</body>
</html>
shaalaa.com
  Is there an error in this question or solution?
Chapter 5: HTML- III: Audio, Video and Forms - Assisted Practice [Page 231]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 5 HTML- III: Audio, Video and Forms
Assisted Practice | Q 2. | Page 231
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×