HTML5 Guidelines for Web Developers

(coco) #1
3.3 New Elements 55

Figure 3.10 The public key of the “keygen” element, represented in Firebug


If you have not had much previous experience with cryptography but would
like to find out more, Wikipedia is always a good starting point. Check
out http://en.wikipedia.org/wiki/Public_key_infrastructure and http://
en.wikipedia.org/wiki/Challenge-response_authentication.

3.3.5 Calculations with “output”


“The output element represents the result of a calculation.” That is the very short
explanation in the HTML5 specification, and you will find exactly the same text
on most websites describing the new element. It all sounds very sensible, but
what kind of calculations are we dealing with? Why do we need a special element
for them?


As a general rule, these are calculations resulting from input fields on a web-
site. An example familiar to most people would be an electronic shopping cart
where the quantity for each product can be entered in an input field. Via the
optional for attribute, you can determine which fields to include in the calcu-
lation. One or more id attributes of other fields in the document are referenced
in the process.


NOTE
Free download pdf