Html 为什么不';t表单标记在div之后工作
我有一个表单,其中有一个div标记,用于帮助将表单的第二部分设置为第二列。但是,我的关闭表单标签现在不起作用。有什么原因吗 我有一个localstorage.js,它在Html 为什么不';t表单标记在div之后工作,html,css,forms,Html,Css,Forms,我有一个表单,其中有一个div标记,用于帮助将表单的第二部分设置为第二列。但是,我的关闭表单标签现在不起作用。有什么原因吗 我有一个localstorage.js,它在之前一直工作正常。求求你,救命!我快完成这一页了 <div id="section"> <form id="franchiseForm" action ="javascript:void(0);" method="POST"> <div class="field">
之前一直工作正常。求求你,救命!我快完成这一页了
<div id="section">
<form id="franchiseForm" action ="javascript:void(0);" method="POST">
<div class="field">
<label for="fran_name">Franchise Name</label>
<input type="text" name="franchise_name" id="fran_name" placeholder="e.g One Delivery Leeds" pattern="[a-zA-Z]" autofocus required tabindex="1">
<br>
</div>
<div id="form-group">
<p>Opening Hours</p>
<div>
<label for="Monds"> Monday </label>
<input type="text" name="Mon" id="Mon" class="open_hours" placeholder="--:--" required tabindex="8">
<span>-</span>
<input type="text" name="Monday" id="Monday" class="open_hours" placeholder="--:--" required tabindex="9">
<hr />
</div>
<div>
<div class="line-separator"> </div>
<div class="field">
<input type="submit" value="Save">
</div>
</form>
特许经营权名称
开放时间
星期一
-
您忘记关闭
标记。使用以下命令:
<div id="section">
<form id="franchiseForm" action ="javascript:void(0);" method="POST">
<div class="field">
<label for="fran_name">Franchise Name</label>
<input type="text" name="franchise_name" id="fran_name" placeholder="e.g One Delivery Leeds" pattern="[a-zA-Z]" autofocus required tabindex="1">
<br>
</div>
<div id="form-group">
<p>Opening Hours</p>
<div>
<label for="Monds"> Monday </label>
<input type="text" name="Mon" id="Mon" class="open_hours" placeholder="--:--" required tabindex="8">
<span>-</span>
<input type="text" name="Monday" id="Monday" class="open_hours" placeholder="--:--" required tabindex="9">
<hr>
</div>
</div>
<div>
<div class="line-separator"> </div>
<div class="field">
<input type="submit" value="Save">
</div>
</div>
</form>
</div>
特许经营权名称
开放时间
星期一
-
您可以使用HTML验证程序检查标记错误。对于大多数情况都足够了。您有未关闭的div标记,请尝试关闭它们。关闭
“我的关闭表单标记现在不起作用”。这是什么意思?我的文本编辑器告诉我,我的close-from标记行有一个错误。但是如果我把标签移到div id上面,我的文本编辑器会告诉我它的位置fine@AsadPalekar我只数了一个,我的错。我错了,谢谢你。我查过了,上面说我在表格里的div无效。我的所有div都已关闭,我的编辑器将突出显示未以红色关闭的div谢谢,我的所有div都已关闭,我的编辑器将突出显示未以红色关闭的div