4. WML Generic Metadata: <meta>

Preferences - Do not show ads

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">

    <meta name="author" content="Andrew"/>

  <card id="card1" title="WML Tutorial">
    <p>Hello World</p>

Previous Page Page 7 of 50 Next Page

Contents at a Glance (Click Here for Full Table of Contents)
Print this Web Page | | Back to Top

Feedback Form (Expand)

What do you think about this web page?

WML Tutorial Table of Contents WML Tutorial Contents at a Glance Preferences - Change Color Scheme Preferences - Do Not Show Ads Previous Page Next Page