且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

" BR&Q​​UOT; XHTML Strict中的标记等价物?

更新时间:2023-02-17 13:07:24

Mohammd M. Hussain写道:
Mohammd M. Hussain wrote:
我正在编写一个XHTML 1.0 Strict Compatible网页。然而,
验证器抱怨< br>标签。我想知道是否有其他替代方案。
I am writing an XHTML 1.0 Strict Compatible web page. However, the
validator complained about the <br> tag. I wonder whether there is
another alternative for this.



http://www.w3.org/TR/xhtml1/#h-4.6


然而 - 在大多数情况下,当人们使用< br>那么要么意味着< li>或者

margin-bottom:1em; (或更大)。


为什么你还在使用XHTML? http://www.hixie.ch/advocacy/xhtml


-

David Dorward< http://dorward.me.uk/>



http://www.w3.org/TR/xhtml1/#h-4.6

However - in most cases, when people use <br> then either mean <li> or
margin-bottom: 1em; (or larger).

Why are you using XHTML anyway? http://www.hixie.ch/advocacy/xhtml

--
David Dorward <http://dorward.me.uk/>


mm******@syr.edu (Mohammd M. Hussain)写道:
mm******@syr.edu (Mohammd M. Hussain) wrote:
我正在编写一个XHTML 1.0 Strict Compatible网页。然而,
验证器抱怨< br>标签。


那么它有理由这样做。您要求它根据您引用的正式定义检查

文档的语法。而且确实这样做了。
。如果你感到困惑,那是因为你不知道你所提到的

正式定义。


正式没有错误的< br>标签在XHTML 1.0 Strict

本身。这是你使用它的重要环境。并且你没有提供

的提示,例如URL。

我想知道是否还有其他替代方案。
I am writing an XHTML 1.0 Strict Compatible web page. However, the
validator complained about the <br> tag.
Then it had a reason to that. You asked it to check the syntax of your
document against a formal definition that you refer to. And it did
exactly that. If you are puzzled, that''s because you don''t know the
formal definition that you referred to.

There''s formally nothing wrong with the <br> tag in XHTML 1.0 Strict
per se. It''s the context where you use it that matters. And you gave no
hint of that, such as a URL.
I wonder whether there is
another alternative for this.




您使用的标记应取决于您的

文档的逻辑结构,您根本没有描述过。


-

Yucca, http:/ /www.cs.tut.fi/~jkorpela/

关于网页制作的网页: http://www.cs.tut.fi/~jkorpela/www.html



The markup you use should depend on the logical structure of your
document, which you haven''t described at all.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


在文章< 87 ************************** @ posting.google.com>,
mm ****** @ syr.edu (Mohammd M. Hussain)写道:
In article <87**************************@posting.google.com >,
mm******@syr.edu (Mohammd M. Hussain) wrote:

我正在编写一个XHTML 1.0 Strict Compatible网页。然而,
验证器抱怨< br>标签。我想知道是否还有其他选择。

I am writing an XHTML 1.0 Strict Compatible web page. However, the
validator complained about the <br> tag. I wonder whether there is
another alternative for this.




我认为XHTML需要一个空格斜杠,如:< br />


Dennis M. Straussfogel,Ph.D。

航空航天工程顾问



I think XHTML requires a closing space-slash, as in: <br />

Dennis M. Straussfogel, Ph.D.
Aerospace Engineering Consultant