0% found this document useful (0 votes)
26 views5 pages

HTML Level 3 (Ans)

The document contains 3 examples of HTML forms and tables that collect user input and display data. The first example shows a table to display student information. The second example shows a form with various input fields like text, radio buttons, dropdown and textarea. The third example displays a feedback form with fields for name, email, message, rating and a submit button.

Uploaded by

ajaynagar4671
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views5 pages

HTML Level 3 (Ans)

The document contains 3 examples of HTML forms and tables that collect user input and display data. The first example shows a table to display student information. The second example shows a form with various input fields like text, radio buttons, dropdown and textarea. The third example displays a feedback form with fields for name, email, message, rating and a submit button.

Uploaded by

ajaynagar4671
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

HTML (Level 3)

Practice Solutions
Ans1
<table border="black">
<caption>
Student Information
</caption>
<tr>
<th rowspan="6">Info</th>
<th rowspan="2">Name</th>
<th colspan="2">Address</th>
</tr>
<tr>
<th>City</th>
<th>House</th>
</tr>
<tr>
<td>A</td>
<td>Delhi</td>
<td>1</td>
</tr>
<tr>
<td>B</td>
<td>Mumbai</td>
<td>2</td>
</tr>
<tr>
<td>C</td>
<td>Kolkata </td>
<td>3</td>
</tr>
<tr>
<td>D</td>
<td>Pune </td>
<td>4</td>
</tr>
</table >

Ans 2
<form >
<label for ="name ">Name: </label >
<input type ="text " name ="name " />
<br />< br />

<label for ="sex ">Sex: </label >


<input type ="radio " name ="sex " id="male " value ="male " />
<label for ="male ">Male </label >
<input type="radio" name="sex" id="female" value="female" />
<label for="female">Female</label>
<br /><br />

<label for="country">Country: </label>


<select name="country" id="country">
<option>Select an option</option>
<option value="india">India</option>
<option value="usa">USA</option>
<option value="nepal">Nepal</option>
<option value="canada">Canada</option>
</select>
<br /><br />

<label for="message">Message:</label><br />


<textarea name="message" id="message" cols="30"
rows="4"></textarea
><br /><br />

<input type="checkbox" name="newsletter" id="newsletter" />


<label for="newsletter">Subscribe?</label>
<br /><br />

<button>Submit</button>
</form>
Ans 3
<h2>Feedback Form</h2>
<form action="/contact">
<label for="name">Name: </label>
<input type="text" placeholder="Write your name" id="name" />
<br /><br />

<label for="email">Email: </label>


<input type="email" placeholder="Write your email" id="email"
/>
<br /><br />

<label for="message">Message: </label><br />


<textarea name="message" id="message" cols="30"
rows="4"></textarea>
<br /><br />

<label for="rating">Rate us our of 5:</label><br />


<input type="radio" name="rating" id="one" value="one" />
<label for="one">1</label><br />
<input type="radio" name="rating" id="two" value="two" />
<label for="two">2</label><br />
<input type="radio" name="rating" id="three" value="three" />
<label for="three">3</label><br />
<input type="radio" name="rating" id="four" value="four" />
<label for="four">4</label><br />
<input type="radio" name="rating" id="five" value="five" />
<label for="five">5</label><br />
<br /><br />

<button>Send your message!</button>


</form>

You might also like