Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Why are answer being wrong it is correct? step-5

<!-- All the best -->
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<title>HTML Calculator Layout</title>
</head>
<body>
<table>
<table border="1px" height="50px" width="75%">
<tr height="50px">
<tr>
<td><input type="text" style="width:95%;height:50px;"/></td>
</tr>
<tr height="50px">
<td><input type="text" style="width:95%;height:50px;"/></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</body>
</html>
by

1 Answer

iamabhishek
You missed the last instruction, which says that you have to use colspan property in the column of the first row of the table. The correct code will be:

<!doctype html>
<html>
<head>
<title>
Hello
</title>
</head>
<body>
<table border="1px" width="75%">
<tr height="50px">
<td colspan="4">
<input type="text" style="width:95%;height:50px;"/>
</td>
</tr>
<tr height="50px">
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</body>
</html>

Login / Signup to Answer the Question.