Typically indicates whether a display object (for example, figure, table, boxed text) must be anchored in its exact location within the text or may float to a different location in the document (for example, top of the next page, into the next column, within a separate window). Also used to indicate that the display object should be placed in the margin or used as a background image behind the text.

Used on these Elements:

anchorThe object must remain in its exact location in the text flow.
backgroundThe object (typically an image) is used as background displayed visually “behind” the narrative text.
floatThe object is not anchored and may be moved to a new column, a new window, a new page, the end of the document, etc.
marginIn print, the object should be placed in the margin or gutter; online, the object should remain closely associated with the text.
Default valuefloat

Example 1

A figure is allowed to float to the top of a new column or page (in print) or into a new window (online):
<fig id="f1" orientation="portrait" position="float">
<title>National Synchrotron Light Source II facility</title>
<p>Taken July 2015 during public tour.</p></caption>
<graphic xlink:href="f1-bnl-2015-65"/>
<attrib>Brookhaven National Laboratory</attrib>

Example 2

A code sample to be placed in the exact position in the flow of text:
  code-type="user interface control" 
#include &lt;conio.h>
// Needed for mouse &amp; win functions#define