GuideML: P Tag
Created | Updated Apr 20, 2012
The <p> tag denotes a paragraph. Most text in GuideML entries is split up into paragraphs, with paragraphs normally being displayed with spacing between them.
Syntax and Usage
This is an HTML tag, so it can be upper or lower case, but we recommend lower case.
Optional attributes are shown in italics, and the vertical bar character | denotes a choice, so left|center|right means one of left, center or right.
<p align="left|center|right">...text... </p>
This denotes a paragraph, the basic building block of entries.
If the align attribute is present, then this determines the alignment of the paragraph. Note that the alignment arguments are spelled in US English ('center' not 'centre') for compatibility with the HTML standard.
Known Issues
None.
Example One
This sentence is in the first paragraph. And so is this one.
However, this sentence is in the second paragraph.
<p>This sentence is in the first paragraph. And so is this one.</p> <p>However, this sentence is in the second paragraph.</p>
Example Two
This paragraph has the alignment set to "center", which means it will be centred on the page. If it is long enough to be wrapped around, then each line will be centred in turn.
<p align="center">This paragraph has the alignment set to <code>"center"</code>, which means it will be centred on the page. If it is long enough to be wrapped around, then each line will be centred in turn.</p>
Example Three
Similarly, this paragraph is aligned to the right, and you can see that each line in the paragraph is flushed to the right of the page.
<p align="right">Similarly, this paragraph is aligned to the right, and you can see that each line in the paragraph is flushed to the right of the page</p>