开发者

What is <meta http-equiv="Reply-to" content="admin@example.com" />?

What does the following HTML code do?

<meta http-equiv="Reply-to" content="admin@example.c开发者_如何转开发om" />

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


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="fielding@ics.uci.edu (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: fielding@ics.uci.edu (Roy Fielding)


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

<meta http-equiv="Reply-to" content="admin@example.com" />

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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜