Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Apeejay Svran Global School

Class-8
Source Code of HTML(Forms)
<html>

<head> <title> Lists </title></head>

<body>

<h1> Welcome to Apeejay</h1>

<form>

First name:<input type="text" name="fname"/><br><br>

Last Name: <input type="text" name="lname"><br><br>

password:<input type="password"/><br><br>

address: <textarea rows="10" cols="30"></textarea><br><br>

Gender: <input type= "radio" name="gender" value="Male"> Male

<input type="radio" name="gender" value="Female"> Female <br><br>

Choose your Activities:

<input type="checkbox" name="activity" value="Cricket"> Cricket

<input type="checkbox" name="activity" value="Football"> Football

<input type="checkbox" name="activity" value="Lawntennis">Lawntennis

<input type="checkbox" name="activity" value="Dance"> Dance<br><br>

Choose your Car: OUTPUT

<select id="cars" name="cars">

<option value="volvo">volvo</option>

<option value="fiat"> Fiat </option>

<option value="BMW">BMW </option>

<option value="Audi"> Audi </option>

<option value="Bugatti"> Bugatti </option>

</select><br><br>

<button type="Reset">Reset</button>

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

</form>

</html>
Source Code of HTML(Tables)

<html>

<head> <title> Tables </title></head>

<body>

<h2> we are learning Tables in HTML</h2>

<table border="10" bordercolor="red" align="center"

cellspacing="20" cellpadding="20" > OUTPUT

<tr>

<th>Rollno</th>

<th>Names</th>

<th>Marks</th>

<th>Grade</th>

</tr>

<tr>

<td>1</td>

<td align="center">AA</td>

<td>20</td>

<td>b </td></tr>

<tr><td>2</td> <td>BB</td> <td>30</td> <td>b+</td></tr>

</table>

</body>

</html>

You might also like