4. WML Generic Metadata: <meta>
You can specify some generic metadata in your WML file using the <meta/> tag. Metadata is placed at the document head. The <head> and </head> tags mark the start and end of the document head respectively. A WAP browser will ignore the metadata if it does not understand the metadata's meaning. You can specify metadata of any sort in a WML file without affecting the cards' look. For example, you may want to state the author name in your WML file without displaying it on the screen. The following example illustrates how to do this:
<?xml
version="1.0"?>
<!DOCTYPE wml PUBLIC
"-//WAPFORUM//DTD WML 1.3//EN"
"http://www.wapforum.org/DTD/wml13.dtd">
<wml>
<head>
<meta
name="author" content="Andrew"/>
</head>
<card
id="card1" title="WML Tutorial">
<p>Hello
World</p>
</card>
</wml>
Previous Page | Page 7 of 50 | Next Page |
- 1. WML (Wireless Markup Language) Introduction
- 2. WML Deck and Card
- 3. WML Document Structure
- 4. WML Generic Metadata: <meta>
- 5. Comments in WML
- 6. Line Breaking in WML
- 7. Font Size and Style in WML
- 8. WML Preformatted Text: <pre>
- 9. WML Images
- 10. WML Tables
- 11. WML Anchor Links
- 12. Programming Softkeys of Mobile Phones and the <do> Element
- 13. WML Template and Menu
- 14. WML Events and the <onevent> Tag
- 15. Timer and the ontimer Event
- 16. WML Event: onenterbackward
- 17. WML Event: onenterforward
- 18. WML Selection Lists and the onpick Event
- 19. WML Input Fields
- 20. WML Variables
- 21. Submitting Form Data to the Server in WML
- 22. Clearing a Saved Form in WML