To use the `` element, place the calculated result or script output within the `` tags. The `for` attribute can be used to associate the output with one or more input elements, such as this:
In this example, the result is linked to the two number inputs. You will usually use Javascript to dynamically update the value of the output. The `name` attribute can be used to provide a name for the output element. The `form` attribute associates the output element with a specific form. The `` element also supports standard HTML global attributes.
Browser Support for ``
The `` element is supported by major modern browsers.
Browser
Version
Chrome
10.0
Edge
13.0
Firefox
4.0
Opera
5.1
Safari
11.0
Default Styling and CSS Customization
Most browsers render the `` element as an inline element by default. You can customize its appearance using CSS, for example: