GuideML - ENTITY Tag

0 Conversations

The <ENTITY> tag allows you insert numerical character entities - such as &#960; - which are illegal in GuideML. It can also be used to enter textual character entities, but it's easier simply to use entities like &pi; rather than the more long-winded <ENTITY TYPE="pi"/>.

Syntax and Usage

<ENTITY TYPE="...type..."/>

This will insert an entity into your article. The ...type... should be the part of an entity that comes after the & but before the semi-colon - all the tag does is to add an ampersand to the start of the argument, and a semi-colon to the end.

Known Issues

Some browsers don't display all entities properly, so before blaming GuideML, check that your browser isn't at fault. Netscape 4.73 on a Mac, for example, can't display the pi symbol properly if it's given as a textual entity &pi;, but displays it fine if it's a numerical entity &#960;. However the latter is illegal in GuideML, so if you want to make sure the pi symbol displays properly in Netscape, you should use <ENTITY TYPE="#960"/> instead of <ENTITY TYPE="pi"/> or &pi;, even though both of these are perfectly legal.

Example One

The copyright symbol is ©.

<P>The copyright symbol is &copy;.</P>

Example Two

The copyright symbol is ©.

<P>The copyright symbol is <ENTITY TYPE="copy"/>.</P>

Example Three

The copyright symbol is ©.

<P>The copyright symbol is <ENTITY TYPE="#169"/>.</P>

Further Information


Bookmark on your Personal Space


Conversations About This Entry

There are no Conversations for this Entry

Entry

A957242

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