

#
“http-equiv="set-cookie"”
“http-equiv="set-cookie"”が指定された“meta”要素はウェブページのCookieを設定します。
サンプルコード
<meta http-equiv="set-cookie" content="NAME=Fruits_Taberu; expires=Sat, 4 Jul 2020 00:00:00 GMT; domain=www.example.com; path=/;">
#
属性と値
属性 | 値 | ||
---|---|---|---|
属性 | 説明 | 値 | 説明 |
必須属性 | |||
http-equiv="" | プラグマディレクティブの定義 | set-cookie![]() |
ウェブページのCookie |
content="" | メタデータの値 | Cookieの設定 | IETF “HTTP State Management Mechanism”仕様書(RFC 6265)で定義されている構文 |
任意属性 | |||
グローバル属性 |
#