?" />

什么是

发布于 2024-09-07 03:17:54 字数 282 浏览 1 评论 0 原文

下面的 HTML 代码有什么作用?

<meta http-equiv="Reply-to" content="[email protected]" />

HTTP 中似乎没有“Reply-to”等效标头。我应该删除它还是纠正它?

What does the following HTML code do?

<meta http-equiv="Reply-to" content="[email protected]" />

There does not seem to a "Reply-to" equivalent header in HTTP. Should I remove it or correct it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

吃颗糖壮壮胆 2024-09-14 03:17:54

我不确定“回复”是否仍然有效。它未在Sitepoint 参考中列出。然而,有一个古老的 W3C 规范说:

HTTP 服务器可以读取文档 HEAD 的内容,以生成与定义属性 HTTP-EQUIV 值的任何元素相对应的标头字段。 (14)

[…]

如果文档包含:



[电子邮件]受保护](罗伊·菲尔丁)“>
CONTENT="Barney">`

那么服务器可能包括
以下标头字段:

到期时间:1993 年 12 月 4 日星期二 21:29:02 GMT
关键词:弗雷德、巴尼
回复:[电子邮件受保护](罗伊·菲尔丁)

I am not sure 'Reply-to' is still valid. It's not listed in the Sitepoint Reference. However, there is an ancient W3C spec that says:

HTTP servers may read the content of the document HEAD to generate header fields corresponding to any elements defining a value for the attribute HTTP-EQUIV. (14)

[…]

If the document contains:

<META HTTP-EQUIV="Expires" CONTENT="Tue, 04 Dec 1993 21:29:02 GMT">
<meta http-equiv="Keywords" CONTENT="Fred">
<META HTTP-EQUIV="Reply-to" content="[email protected] (Roy Fielding)">
<Meta Http-equiv="Keywords" CONTENT="Barney">`

then the server may include the
following header fields:

Expires: Tue, 04 Dec 1993 21:29:02 GMT
Keywords: Fred, Barney
Reply-to: [email protected] (Roy Fielding)

青春有你 2024-09-14 03:17:54

它可能应该使用 name 属性而不是 http-equiv

<meta http-equiv="Reply-to" content="[email protected]" />

“回复”选项旨在成为发布您的电子邮件地址的一种方式,当时没有垃圾邮件问题。现在使用它很可能只会导致垃圾邮件。

It was probably supposed to use the name attribute instead of http-equiv:

<meta http-equiv="Reply-to" content="[email protected]" />

The 'reply-to' option was intended to be a way of publishing your email address, back when there was no spam problem. Using it now will more than likely only result in spam email.

紙鸢 2024-09-14 03:17:54

Reply-to 是 name 属性中的值。您不想向他们提供您的电子邮件地址。您想要收集电子邮件地址,因此请在网页内的 a 元素中使用 mailto: 。当他们给你发电子邮件时,你会得到姓名和电子邮件地址。有关详细信息,请访问

W3Schools

Reply-to is the value that goes in the name attribute. You do not want to give them your e-mail address. You want to collect there e-mail address so use mailto: in the a element within the web page. when they e-mail you, you got there name and e-mail address. For more information go to

W3Schools

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文