GuideML: P Tag

0 Conversations

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>

Further Information


Bookmark on your Personal Space


Conversations About This Entry

There are no Conversations for this Entry

Entry

A1039268

Infinite Improbability Drive

Infinite Improbability Drive

Read a random Edited Entry


Written and Edited by

Disclaimer

h2g2 is created by h2g2's users, who are members of the public. The views expressed are theirs and unless specifically stated are not those of the Not Panicking Ltd. Unlike Edited Entries, Entries have not been checked by an Editor. If you consider any Entry to be in breach of the site's House Rules, please register a complaint. For any other comments, please visit the Feedback page.

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more