Html 为什么此代码的标记无效?

Html 为什么此代码的标记无效?,html,Html,我正在编写一个html代码,我想将所有代码关闭到一个div中。当我将其放置到一个div中时,它给了我一个错误,即我的标记无效,表明关闭div标记无效。现在我很惊讶它怎么会无效。请帮帮我。谢谢 <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Untitled Document&l

我正在编写一个html代码,我想将所有代码关闭到一个div中。当我将其放置到一个div中时,它给了我一个错误,即我的标记无效,表明关闭div标记无效。现在我很惊讶它怎么会无效。请帮帮我。谢谢

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
</head>

<body>
<div>
            <iframe width="350" height="350" src="http://www.youtube.com/embed/P3weDRMemD8" frameborder="0" allowfullscreen></iframe>
            <form style="border:3px;text align.center;" action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit=                "window.open('http://feedburner.google.com/fb/a/mailverify?uri=financeyoga/UPqT', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">

            <input type="text" style="width:140px;padding:10px;" name="email"/>
            <input type="hidden" value="financeyoga/UPqT" name="uri"/>
            <input type="hidden" name="loc" value="en_US"/><br>
            <input style="padding:10px;" type="submit" value="Submit Email Address" />
            <img style="position:relative;top:325px; left:10px;" src="http://financeyoga.com/wp-content/uploads/2012/05/follow.png" width="143" height="64" border="0" usemap="#Map">
            <map name="Map">
            <area shape="rect" coords="5,18,33,44" href="www.twitter.com" target="_blank" alt="twitter">
            <area shape="rect" coords="57,16,87,46" href="www.facebook.com" target="_blank" alt="facebook">
            <area shape="rect" coords="107,16,137,46" href="plus.google.com" target="_blank" alt="google plus">
            </map>        
</div>
</body>
</html>

你还没有关闭表单标签。

似乎缺少标签。

你试过使用吗?当计算机告诉我我的代码也错了时,我总是感到惊讶。不过,我确实发现电脑通常是对的。@TrevorSenior:谢谢。从现在起,我将使用它来验证。+1比我快了大约2秒:我还建议使用OP,因为它明确地说第23行第6列:End tag div seen,但有开放元素。我没有使用验证器,但这肯定是一种方法——特别是如果有很多标记的话。