Akhil Vinay Mandava
asked on
how can i create a tablular form with input text in html.
i wrote a program like this but it was not right can anyone please modifiy the code ????
Education Details:<br>
<style>
table, th, td {
border: 1px solid black;
}
</style>
<table style="width:200%" />
<tr>
<th>Qualification</th>
<th>Years</th>
<th>University</th>
<th>Percentage</th>
</tr>
<tr>
<td><input type="text" name="Qualification1"></td >
<td><input type="text" name="Years1"></td>
<td><input type="text" name="University1"></td>
<td><input type="text" name="Percentage1"></td>
</tr>
<tr>
<td><input type="text" name="Qualification2"></td >
<td><input type="text" name="Years2"></td>
<td><input type="text" name="University2"></td>
<td><input type="text" name="Percentage2"></td>
</tr>
<tr>
<td><input type="text" name="Qualification3"></td >
<td><input type="text" name="Years3"></td>
<td><input type="text" name="University3"></td>
<td><input type="text" name="Percentage3"></td>
</tr>
<tr>
<td><input type="text" name="Qualification4"></td >
<td><input type="text" name="Years4"></td>
<td><input type="text" name="University4"></td>
<td><input type="text" name="Percentage4"></td>
</tr>
</table>
</br>
Education Details:<br>
<style>
table, th, td {
border: 1px solid black;
}
</style>
<table style="width:200%" />
<tr>
<th>Qualification</th>
<th>Years</th>
<th>University</th>
<th>Percentage</th>
</tr>
<tr>
<td><input type="text" name="Qualification1"></td
<td><input type="text" name="Years1"></td>
<td><input type="text" name="University1"></td>
<td><input type="text" name="Percentage1"></td>
</tr>
<tr>
<td><input type="text" name="Qualification2"></td
<td><input type="text" name="Years2"></td>
<td><input type="text" name="University2"></td>
<td><input type="text" name="Percentage2"></td>
</tr>
<tr>
<td><input type="text" name="Qualification3"></td
<td><input type="text" name="Years3"></td>
<td><input type="text" name="University3"></td>
<td><input type="text" name="Percentage3"></td>
</tr>
<tr>
<td><input type="text" name="Qualification4"></td
<td><input type="text" name="Years4"></td>
<td><input type="text" name="University4"></td>
<td><input type="text" name="Percentage4"></td>
</tr>
</table>
</br>
Wrapp the table inside in a form or wrapp an input element in a form eg
<form>
table inside
</form>
ASKER
i need to insert information in the tabular in text format so anyone can chage and sent me the code and also change the table style,
See this code that the table is inside in a form element:
And this without form:
And this with a form inside the td wrapped the input elements
<!DOCTYPE html>
<html>
<head>
<title>HTML5, CSS3 and JavaScript demo</title>
<style>
table, th, td {
border: 1px solid black;
}
</style>
</head>
<body>
<!-- Start your code here -->
<form action="">
<table>
<tr>
<th>Qualification</th>
<th>Years</th>
<th>University</th>
<th>Percentage</th>
</tr>
<tr>
<td><input type="text" name="Qualification1"></td>
<td><input type="text" name="Years1"></td>
<td><input type="text" name="University1"></td>
<td><input type="text" name="Percentage1"></td>
</tr>
<tr>
<td><input type="text" name="Qualification2"></td>
<td><input type="text" name="Years2"></td>
<td><input type="text" name="University2"></td>
<td><input type="text" name="Percentage2"></td>
</tr>
<tr>
<td><input type="text" name="Qualification3"></td>
<td><input type="text" name="Years3"></td>
<td><input type="text" name="University3"></td>
<td><input type="text" name="Percentage3"></td>
</tr>
<tr>
<td><input type="text" name="Qualification4"></td>
<td><input type="text" name="Years4"></td>
<td><input type="text" name="University4"></td>
<td><input type="text" name="Percentage4"></td>
</tr>
</table>
</form>
<!-- End your code here -->
</body>
</html>
And this without form:
<!DOCTYPE html>
<html>
<head>
<title>HTML5, CSS3 and JavaScript demo</title>
<style>
table, th, td {
border: 1px solid black;
}
</style>
</head>
<body>
<!-- Start your code here -->
<table>
<tr>
<th>Qualification</th>
<th>Years</th>
<th>University</th>
<th>Percentage</th>
</tr>
<tr>
<td><input type="text" name="Qualification1"></td>
<td><input type="text" name="Years1"></td>
<td><input type="text" name="University1"></td>
<td><input type="text" name="Percentage1"></td>
</tr>
<tr>
<td><input type="text" name="Qualification2"></td>
<td><input type="text" name="Years2"></td>
<td><input type="text" name="University2"></td>
<td><input type="text" name="Percentage2"></td>
</tr>
<tr>
<td><input type="text" name="Qualification3"></td>
<td><input type="text" name="Years3"></td>
<td><input type="text" name="University3"></td>
<td><input type="text" name="Percentage3"></td>
</tr>
<tr>
<td><input type="text" name="Qualification4"></td>
<td><input type="text" name="Years4"></td>
<td><input type="text" name="University4"></td>
<td><input type="text" name="Percentage4"></td>
</tr>
</table>
<!-- End your code here -->
</body>
</html>
And this with a form inside the td wrapped the input elements
<!DOCTYPE html>
<html>
<head>
<title>HTML5, CSS3 and JavaScript demo</title>
<style>
table, th, td {
border: 1px solid black;
}
</style>
</head>
<body>
<!-- Start your code here -->
<table>
<tr>
<th>Qualification</th>
<th>Years</th>
<th>University</th>
<th>Percentage</th>
</tr>
<tr>
<td><form action=""><input type="text" name="Qualification1"></form></td>
<td><form action=""><input type="text" name="Years1"></form></td>
<td><form action=""><input type="text" name="University1"></form></td>
<td><form action=""><input type="text" name="Percentage1"></form></td>
</tr>
<tr>
<td><form action=""><input type="text" name="Qualification1"></form></td>
<td><form action=""><input type="text" name="Years1"></form></td>
<td><form action=""><input type="text" name="University1"></form></td>
<td><form action=""><input type="text" name="Percentage1"></form></td>
</tr>
<tr>
<td><form action=""><input type="text" name="Qualification1"></form></td>
<td><form action=""><input type="text" name="Years1"></form></td>
<td><form action=""><input type="text" name="University1"></form></td>
<td><form action=""><input type="text" name="Percentage1"></form></td>
</tr>
<tr>
<td><form action=""><input type="text" name="Qualification1"></form></td>
<td><form action=""><input type="text" name="Years1"></form></td>
<td><form action=""><input type="text" name="University1"></form></td>
<td><form action=""><input type="text" name="Percentage1"></form></td>
</tr>
</table>
<!-- End your code here -->
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
and what do you want changed ?
that's not a program, but a piece of html text