Inline Elements
Setting the display to inline
, the default value, places the element in the next
available position from left to right, much as each word in this
paragraph is positioned. (The exact direction can change for
right-to-left languages like Hebrew or top-to-bottom languages like
traditional Chinese.) The text may be wrapped from one line to the
next if necessary, but there won’t be any hard line breaks between
each inline element. In Examples Example 13-1 and Example 13-2, the quantity
, step
, person
, city
, and state
elements were all formatted as
inline
. This didn’t need to be
specified explicitly because it’s the default.
Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.