Html-keygen-tag
提供:Dev Guides
HTML-keygenタグ
説明
HTML <keygen>タグは、証明書管理システムでWebフォームを処理するために使用されます。 要素は安全なキーを生成し、公開キーを送信します。
例
<!DOCTYPE html>
<html>
<head>
<title>HTML keygen Tag</title>
</head>
<body>
<form>
<keygen name = "random_key" challenge = "0987654321">
<input name = "firstname" value = "first name">
</form>
</body>
</html>
これは、次の結果を生成します-
グローバル属性
このタグは、リンク:/html/html_attributes_reference [HTML属性リファレンス]で説明されているすべてのグローバル属性をサポートします
特定の属性
HTML <keygen>タグは、次の追加属性もサポートしています-
Attribute | Value | Description |
---|---|---|
autofocus html-5 | autofocus | Specifies that when the page loads the <keygen> element automatically gets focus. |
challengehtml-5 | challenge | Specifies the challenge string to be packaged with the public key in the PublicKeyAndChallenge for use in verification of the form submission. If no challenge string is provided, then it is encoded as an IA5STRING of length zero. |
disabled html-5 | disabled | Specifies that <keygen> element should be disabled. |
form html-5 | form_id | Specifies one or more forms. |
keytype html-5 | rsadsaec | Specifies the secret algorithm which is for the key. |
name html-5 | autofocus | Specifies a name. |
イベント属性
このタグは、− link:/html/html_events_reference [HTMLイベントリファレンス]で説明されているすべてのイベント属性をサポートします。
ブラウザのサポート
Chrome | Firefox | IE | Opera | Safari | Android |
---|---|---|---|---|---|
Yes | Yes | No | Yes | Yes | Yes |