The hAction microformat allows you to add additional semantic information to web pages containing service information for use in informatic workflows. This allows visitors to use that data in a more flexible way.
Specification
This microformat aims to map the following common attributes of a service action.- Service destination URL
- Fields for data collection or display. Existing form elements (such as text fields and drop down menus) can be further described using the HTML
nameattribute.
Schema
The hAction schema consists of the following:hActiondestinationfield(optional)
Example
A simple RESTful service that accepts a sequence for a PROSITE search could be represented on a web page as:
<div class='haction'>
<form method='POST' class='destination' action='http://www.bioformats.org/haction/'>
TrEMBL ID:<br />
<input type='text' class='field' name='TrEMBL' /> or<br />
Sequence:<br />
<textarea rows='2' cols='30' class='field' name='sequence'></textarea>
<br />
<input type='submit' value='Search' />
</form>
</div>
