Rules for Creating Document Type Definition, or DTD, Elements
Basically, you prepare and use a Document Type Definition (DTD) to add structure and logic, making it easier to ensure that all essential features are present — in the right order — in your XML document. You may develop many rules in your DTD that control how elements can be used in an XML document.
| Symbol |
Meaning |
Example |
| #PCDATA |
Contains parsed character data or text |
<element (#PCDATA)> |
| #PCDATA, element-name |
Contains text and another element; #PCDATA is always listed first in a rule |
<element (#PCDATA,
child)*> |
| , (comma) |
Must use in this order |
<element (child1, child2,
child3)> |
| | (pipe bar) |
Use only one element of the choices provided |
<element (child1 | child2 |
child3)> |
| element-name (by itself) |
Use one time only |
<element (child)> |
| element-name? |
Use either once or not at all |
<element (child1, child2?,
child3?)> |
| element-name+ |
Use either once or many times |
<element (child1+, child2?,
child3)> |
| element-name* |
Use once, many times, or not at all |
<element (child1*, child2+,
child3)> |
| ( ) |
Indicates groups; may be nested |
<element (#PCDATA | child)*> or
<element ((child1*, child2+, child3)* |
child4)> |

Web Design & Development Glossary
AJAX
asynchronous JavaScript and XML. A technique used in web page development.

Web Design & Development Glossary
API
application programming interface. A set of rules programs use to communicate with each other.

Web Design & Development Glossary
color stop
A special element that indicates a color to be added to a gradient.

Web Design & Development Glossary
FTP
File Transfer Protocol. A network protocol useful for transferring files in a client-server relationship.

Web Design & Development Glossary
HTML
HyperText Markup Language. The predominant language for building web pages.

Web Design & Development Glossary
HTTP
HyperText Transfer Protocol. The primary networking language for the Internet.

Web Design & Development Glossary
PHP
PHP Hypertext Processor. A scripting language that works well within HTML.

Web Design & Development Glossary
socket
A technology that allows remote computers to maintain a persistent connection in order to communicate with each other.

Web Design & Development Glossary
sprite
An graphic object on a web page that will be manipulated in real time.

Web Design & Development Glossary
SQL
Structured Query Language. A programming language useful in managing relational databases.

Web Design & Development Glossary
stateless protocol
An Internet procedure that completely breaks the connection between the client and the server after a transaction, meaning that the next transaction will require an entirely new connection.

Web Design & Development Glossary
Telnet
A network protocol useful in interactive, text-oriented communications.

Web Design & Development Glossary
W3C
World Wide Web Consortium. The organization that sets international standards for the World Wide Web.