Html
元素p在此上下文中不允许作为元素按钮的子元素。正在抑制来自此子树的进一步错误Html ,html,w3c-validation,Html,W3c Validation,元素p在此上下文中不允许作为元素按钮的子元素。正在抑制来自此子树的进一步错误 <form action="{% url search %}" class=""> <div class="input-append"> <input size="16" placeholder='{% trans "Search" %}' type="text"
<form action="{% url search %}" class="">
<div class="input-append">
<input size="16"
placeholder='{% trans "Search" %}'
type="text"
name="q"
value="{{ request.REQUEST.q }}">
<button class="btn" type="submit"><p class="icon-search"></p>
</button>
</div>
</form>
根据,元素只能包含文本或图像等内容-具体来说,可以找到完整列表中的语法元素。元素不包括在此元素列表中,因此您提供的HTML将无法根据规范进行验证
希望这有帮助
另一方面,请尽量提高您的问题质量,因为您当前的问题相当不清楚,因此很难帮助您。您的问题是什么?