我下面的xhtml代码中有哪些错误 [英] What are some of the errors in my below xhtml code

查看:74
本文介绍了我下面的xhtml代码中有哪些错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">

<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />


<h3> Choose your hire options and click submit </h3>

<form id="myform" action="process.php" method="put">

<table border=1>
<tr>
<td> Membership Number </td>
<td> <input type="text" name="memnum" maxlength="8" size="12" /> </td>
</tr>
<tr>
<td> DVD? <input type="checkbox" name="dvd" value="yes" /> </td>
</td>
<td rowspan="2" align="center">Nights required<br />
<select name="nights">
<option>1</option> <option>2</option>
<option>3</option> </select>
</td>
<tr>
<td> VHS? <input type="checkbox" name="vhs" value="yes" /> </td>
</tr>
<tr>
<td colspan="2" align="center">
<select id="classbox">
<option value="1">Choose classification</option>
<option value="2">PG and below </option>
<option value="3">12 and below</option>
<option value="4">15 and below</option>
<option value="5">18 and below</option> </select>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<select name="film" id="filmbox"> 
<option value="NON">Select film to reserve</option>
</select>
</tr>
</td>
</table>
<br />
<br />
<input type="submit" value="Reserve Video"/>
</form>
</body>
</html>





我尝试过:



程序中的一些错误



What I have tried:

what are some of the errors in my programme

推荐答案

如果你还没有这样做,你应该安装一个不错的IDE - VS 2017有免费版本...



1.否正文(只有结束标记),所以你的所有内容都在 ...

2.有一些不必要的 td 关闭......
If you haven't done it already you should install a decent IDE - VS 2017 has free versions...

1. No body (only a closing tag), so all your content is in the head...
2. There are some unnecessary td closings...


这篇关于我下面的xhtml代码中有哪些错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆