BBC Home

Explore the BBC

h2g2
3rd December 2009
Accessibility help
Text only

Guide ID: A957242 (Help Page)

Help Page


SEARCH h2g2
Edited Entries only
Search h2g2Advanced Search


New visitors: Create your membership
Returning members: Sign in
BBC Homepage
The Guide to Life, The Universe and Everything.


Created: 5th February 2003
GuideML - ENTITY Tag
Contact Us


Like this page?
Send it to a friend!

 

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 ©.

Example Two

The copyright symbol is ©.

Example Three

The copyright symbol is ©.

Further Information



Clip/Bookmark this page
This article has not been bookmarked.
ENTRY DATA
Edited by:

The h2g2 Editors



CONVERSATION TOPICS FOR THIS ENTRY:

Start a new conversation

To be the first person to discuss this entry, click on the "Start a new conversation" link above.



Disclaimer

Most of the content on h2g2 is created by h2g2's Researchers, who are members of the public. The views expressed are theirs and unless specifically stated are not those of the BBC. The BBC is not responsible for the content of any external sites referenced. In the event that you consider anything on this page to be in breach of the site's House Rules, please click here. For any other comments, please start a Conversation above.




About the BBC | Help | Terms of Use | Privacy & Cookies Policy