When testing in W3C, we got some errors such as:

代码

Line 42, Column 98: document type does not allow element "form" here; missing one of "object", "applet", "map", "iframe", "ins", "del" start-tag

…earch_form" action="/index.php/" method="get">

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Line 155, Column 43: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag<div class="clear"><!-- DON'T DELETE --></div>The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Why?

Because in the code, i do as below:

<span class="left"><form action="XXX" method="XXX">//Other codes</form></span><span class="right"><div class="clear"><!-- DON'T DELETE --></div></span>

But that, put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>") is not allowed in W3C, the form element must be contained within only certain elements, but many more types of elements can be contained within the form element. For example: <p><form></form></p> that will not validate. However, this will: <form><p></p></form>

[html] W3C--span is a nested element.相关推荐

  1. html span title属性,html – -Element:aria-label或title属性

    简而言之:尽管WCAG建议之一,abbr并不是解释每个人缩写意义的完美解决方案,但是当你想宣布缩写的发音时,应该使用咏叹调标签. Relying on the title attribute is c ...

  2. HTML span标签学习笔记

    网址: https://www.w3schools.com/tags/tag_span.asp 行内元素 span是inline(行内)元素. 设置宽高无效: 设置padding有效: 一小格是5px ...

  3. css悬浮在某个span后面,在contenteditable div中的span元素后面设置光标

    4 个答案: 答案 0 :(得分:19) 在IE< = 8以外的浏览器中,这样做: function placeCaretAfterNode(node) { if (typeof window. ...

  4. 在Vue3中使用Element Plus Icon图标的几种方式

    安装 Element Plus $ npm install @element-plus/icons 在main.js 引入 import * as ElIcon from '@element-plus ...

  5. animate.ccss_引入CCSS(组件CSS)

    animate.ccss CCSS, or Component CSS, is an architecture that simplifies the CSS authoring experience ...

  6. springboot启动时报错Logging system failed to initialize using configuration from 'classpath:logging-conf

    项目报错: Logging system failed to initialize using configuration from 'classpath:logging-config.xml' ja ...

  7. (下)python3 selenium3 从框架实现代码学习selenium让你事半功倍

    上一篇博文简要 在上一篇博文中已得知:使用 execute 向远程服务器发送请求会通过 webdriver 与浏览器交互,且发送已定义的命令常量可获得一些相关信息. 其中 execute 方法实现已经 ...

  8. JavaScript + CSS3 实现的海报画廊特效

    原文:JavaScript + CSS3 实现的海报画廊特效 这是慕课网上<CSS3+JS 实现超炫的散列画廊特效>的源代码,我修改了一些 bug 和调优了一些细节,并把学习过程中并不了解 ...

  9. 请查收!顶会AAAI 2020录用论文之自然语言处理篇

    文章目录 自然语言处理篇(NLP)         Question Answering         Sequence Labeling         Semantics and Summari ...

最新文章

  1. Scrum Mastery:有效利用组织的5个步骤
  2. JavaScript中的作用域,闭包和上下文
  3. xp下msn8.5无法安装的解决办法
  4. pyecharts应用2 柱状图
  5. centos 7安装
  6. Golang 为什么不能直接将任意类型数组赋值给 []interface{}完成泛型操作
  7. ICLR 2020 | “同步平均教学”框架为无监督学习提供更鲁棒的伪标签
  8. 在Ubuntu上安装SAP Cloud Connector的一些错误
  9. shell 判断字符串最后一个字符
  10. StegaStamp:加州大学伯克利分校开源神奇的照片隐写术,打印的照片能当二维码用...
  11. jQuery ajax 结合vue 获取豆瓣api 数据 ,jsonp解决跨域
  12. 南阳oj 814 又见拦截导弹
  13. 112 Python程序中的进程操作-开启多进程(multiprocess.Process)
  14. 更深入的理解动态代理——一个真正让我理解动态代理应用价值的示例
  15. 罗马数字转换python_罗马数字转整数 python
  16. 类和对象的关系练习题:需求:将汽车改装成3个轮子的车并换个颜色。
  17. amp;#9733;用辩证数学解答“缸中之脑”
  18. IGRP中的RTP、Neighbor Discovery协议及Time总结
  19. 八字易经算法之用JAVA实现完整排盘系统_八字易經演算法之用JAVA實現完整排盤系統 | 學步園...
  20. Vitamio直播框架的简单使用

热门文章

  1. spring加载配置文件
  2. Git 初次学习笔记
  3. Kafka+Storm+HDFS整合实践
  4. 管理表空间和数据文件——维护表空间——设置默认表空间和删除表空间和删除数据文件盒临时文件...
  5. 【nodejs原理源码赏析(6)】深度剖析cluster模块源码与node.js多进程(下)
  6. ERROR: Command errored out with exit status 1一例
  7. git lfs的安装和使用详细案例
  8. U25%(1,16) and U25%(1,168)on《C4.5:programs for machine learning》
  9. Xception论文阅读笔记
  10. OpenWrt编程篇