HTML slt;keygen.gt; tags
The label has been removed from the web standard. Y ou can get an overview of the use of the label by following the following examples:Form with keygen field:
用户名: <input type="text" name="usr_name">
加密: <keygen name="security">
<input type="submit">
</form>
Try it out . . .
Browser support
Firefox, Opera, Chrome, and Safari 6 all support the hashtag.
Label definition and instructions for use
The label specifies the key pair generator field used for the form.
When the form is submitted, the private key is stored locally and the public key is sent to the server.
The difference between HTML 4.01 and HTML5
The element is a new HTML5 label.
Property
New :HTML5 new property.
属性 | 值 | 描述 |
---|---|---|
autofocus New | autofocus | 使 <keygen> 字段在页面加载时获得焦点。 |
challenge New | challenge | 如果使用,则将 keygen 的值设置为在提交时询问。 |
disabled New | disabled | 禁用 <keygen> 元素字段。 |
form New | form_id | 定义该 <keygen> 字段所属的一个或多个表单。 |
keytype New |
rsa
dsa ec |
定义密钥的安全算法。 |
name New | name | 定义 <keygen> 元素的唯一名称。name 属性用于在提交表单时搜集字段的值。 |
Global properties
The label supports global properties and views the full property sheet HTML global properties .
The event property
The label supports all HTML event properties .