我是 html 新手,我尝试用表格创建一个简单的登录表单。但是页脚内容没有对齐?
如何在不使用 css 的情况下对齐此页脚?
我需要在不使用页脚标签的情况下创建此表单吗?
那么任何人都可以解释如何进行对齐吗?
<body>
<table align="center">
<tr>
<td> <h2>Login form</h2>
</td>
</tr>
<tr>
<td>
<table align="center">
<form name="new" action="" onsubmit="">
<tr>
<td><p>User name:<p></td>
<td><input type="text"></td>
</tr>
<tr>
<td><p>Password:<p></td>
<td><input type="text"></td>
</tr>
<tr>
<td colspan="2" align="center"><input id="gobutton" type="submit" value="Go!"/></td>
</tr>
</form>
</table>
</td>
</tr>
<tr>
<td><p>About</p></td>
<td><p>Contact</p></td>
<td><p>Press</p></td>
</tr>
</table>
</body>