eclipse 上的错误标签的位置无效 (b)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10137033/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
error on eclipse Invalid location of tag (b)
提问by israel love php
I start to work with eclipse debugger. I write a simple html file with two different lines.
我开始使用 Eclipse 调试器。我用两行不同的行写了一个简单的 html 文件。
<h3 id="TitleField">Array Function </h3><b />
<p><h1>array_change_key_case</h1></p>
I got Exclamation mark with "Invalid location of tag (h1)." and "Invalid location of tag (b).". What am I doing wrong ? Thanks.
我得到了“标签位置无效(h1)”的感叹号。和“标签 (b) 的位置无效”。我究竟做错了什么 ?谢谢。
回答by dfsq
P
can contain only inline elements not block elements likeH1
.
See http://www.w3.org/TR/html4/struct/text.html#edef-P<b />
should be<br />
P
只能包含内联元素,而不是块元素,如H1
.
见http://www.w3.org/TR/html4/struct/text.html#edef-P<b />
应该<br />
回答by mparryy
With headers and paragraphs it automatically starts on a new line, so the <br>
tag is not necessary. <h1>
, <h2>
, <h3>
, etc. are titles, and <p>
are paragraphs.
对于标题和段落,它会自动从新行开始,因此<br>
不需要标记。<h1>
、<h2>
、<h3>
等是标题,<p>
是段落。
You post titles above paragraphs and not inside them, which would look like this:
您在段落上方而不是在段落内部发布标题,如下所示:
<h1>array_change_key_case</h1>
<p>your text</p>