Computational result
output
![](/img/semantax/input-output/output.png)
An output element may be used to display the result of a computation.
Properties
- for
- The IDs of the elements to be associated with this output. When more than one element is specified, separate the IDs with a space.
- name
- The name attribute is used as the key name in the key/value pairs submitted to the server.
- form
- This attribute may be used to declare the input to be part of a form even when it is not directly subordinate to it. Provide the ID of the form.
Example
h1 Intercept (y = mx + c)
form {
input *type=text *id=m *value='2.2'
input *type=text *id=x *value='4.5'
input *type=text *id=c *value='3.1'
label y = {
output *name=y *for='m c x' 13
}
}