Whitespace¶
Structure annotation introducing vertical whitespace
Specification¶
Annotation Category: | |
---|---|
Declaration: |
|
Version History: | |
Since the beginning |
|
Element: |
|
API Class: |
|
Required Attributes: | |
Optional Attributes: | |
|
|
Accepted Data: |
|
Valid Context: |
|
Description & Examples¶
Sometimes you may want to explicitly specify vertical whitespace, rather than repeat multiple linebreaks (Linebreak), the <whitespace> element accomplishes this. Note that using <p> to denote paragraphs is always strongly preferred over using <whitespace> to mark their boundaries, this element should be used sparingly!
The difference between br
and whitespace
is that the former specifies that only a linebreak was present, not
forcing any vertical whitespace between the lines, whilst the latter actually generates an empty space, which would
comparable to two successive br
statements. Both elements can be used inside various structural elements, such as
divisions, paragraphs, headers, and sentences.