gpt4 book ai didi

HTML : Getting warning - Invalid location of tag (input)

转载 作者:太空狗 更新时间:2023-10-29 13:39:17 25 4
gpt4 key购买 nike

我有一个简单的表单并将其放在

中。它工作正常但仍然收到警告。为什么会这样?

例如

<div id = "center">

<form action="test" method="post">

<input type="hidden" id="text1" name="texts"/> </input> --> getting warning

</form> </div>

提前致谢。

最佳答案

<input>元素不能是 <form> 的子元素. block 元素需要去那里。

你需要类似 form --> fieldset --> input 的东西或 form --> div --> input .

你还有一个自闭<input />后跟结束标记 </input>它没有要关闭的打开输入。

关于HTML : Getting warning - Invalid location of tag (input),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4814969/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com