关于< ul> [英] about <ul>
问题描述
嗨
我搜索一下,发现有很多讨论关于
< ul>< li>< p>某事< / p> ;< /立GT;< / UL取代。但我无法找到< ul>
本身的解决方案。我通过validate.w3.org传递以下html。并且它
总是报告错误使用< ul>的错误。有人能告诉我
这个问题的解决方案吗?谢谢!
-----------------------------
<!DOCTYPE html
PUBLIC" - // W3C // DTD XHTML 1.0 Strict // EN"
" http://www.w3.org /TR/xhtml1/DTD/xhtml1-strict.dtd">
< html xmlns =" http://www.w3.org/1999/xhtml"郎= QUOT;恩" xml:lang =" en">
< head>
< title> some< / title>
< / head>
< body>
< p>一些
< ul> ;
< li>< p>结构化网络组件< / p>< / li>
< / ul>
< / p>
< / body>
< / html>
Hi
I search around and find there are many discussion about
<ul><li><p>something</p></li></ul>. But I cannot find solution to <ul>
itself. I pass the following html through validate.w3.org. and it
always report error of misuse of <ul>. Could someone tell me the
solution to this problem? Thanks!
-----------------------------
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>some</title>
</head>
<body>
<p>some
<ul>
<li><p>structured network components</p></li>
</ul>
</p>
</body>
</html>
推荐答案
pipehappy写道:
pipehappy wrote:
嗨
我搜索周围发现有很多讨论
< ul>< li>< p>某事< / p>< / li>< / ul>。但我无法找到< ul>
本身的解决方案。我通过validate.w3.org传递以下html。并且它
总是报告错误使用< ul>的错误。有人能告诉我
这个问题的解决方案吗?谢谢!
Hi
I search around and find there are many discussion about
<ul><li><p>something</p></li></ul>. But I cannot find solution to <ul>
itself. I pass the following html through validate.w3.org. and it
always report error of misuse of <ul>. Could someone tell me the
solution to this problem? Thanks!
< p> some
< ul>
< li>< ; p>结构化网络组件< / p>< / li>
< / ul>
< / p>
<p>some
<ul>
<li><p>structured network components</p></li>
</ul>
</p>
你不能拥有< ulinside a< p> ;.
试试这个:
< p> some< / p>
< ul>
< li>< p>结构化网络组件< / p>< / li>
< / ul>
-
Els http://locusmeus.com/
无障碍网页设计: http://locusoptimus.com/
您好,>
< pis是一个块标记。在块标签内你不能列出一个清单!!
只是改变这样,它将是这个页面是暂时有效的
XHTML 1.0 Strict ;
(w3c验证器的消息)
< body>
< p> some< / p>
< ul>
< li>< p>结构化网络组件< / p>< / li>
< / ul> ;
< / body>
我希望这对你有所帮助
------- --------------
http:// philippe.chappuis.googlepages.com
---------------------
Hello,
<pis a block tag. And inside a block tag you cannot put a list !!
simply change like this, it will be "This Page Is Tentatively Valid
XHTML 1.0 Strict"
(message of w3c validator)
<body>
<p>some</p>
<ul>
<li><p>structured network components</p></li>
</ul>
</body>
I hope this help you
---------------------
http://philippe.chappuis.googlepages.com
---------------------
prac写道:
prac wrote:
你好,
< pis是一个块标签。在块标签内你不能放一个清单!
Hello,
<pis a block tag. And inside a block tag you cannot put a list !!
< divis是一个块元素。在里面< divI当然可以列出一个列表。
你不能在一个段落中有一个列表,但那不是因为< p>
是一个块元素。
-
Els http://locusmeus.com/
无障碍网页设计: http://locusoptimus.com/
这篇关于关于< ul>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!