Library tutorials & articles
Wireless Markup Language (WML) Tutorial
Meta Tags
The head Element
The head element contains information about the deck. The head element may contain an access element and/or several meta elements.
The access Element
The access element is used to limit access to the deck, and must be included within the head section if used. By default, WML decks are public. There may only be one access element in a document. The following table shows the attributes used with the access element.
| Attribute | Description |
|---|---|
|
|
The domain of other decks that are able to access cards in the deck. The default value is the domain of the current deck. |
|
|
The root directory of other decks that are able to access cards in the deck. The default value is the root of the domain, "/". |
The following declaration states that the deck is only accessible from Juicy Studio, and only from the /wmlpages directory.
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
<access domain="juicystudio.com" path="/wmlpages"/>
</head>
<!-- Rest of content here -->
</wml>
The meta Element
The meta element allows you to provide meta data about the deck. Any number of meta elements may be used in the head of the WML document. The following table shows the attributes that may be used with the meta element.
| Attribute | Description |
|---|---|
|
|
This attribute is required, and specifies the meta data for either a http-equiv attribute or the name attribute. |
|
|
An optional attribute that determines if the property should reach the user agent. The possible values are false, and true. If the value is set to true, it must be sent to the user agent. |
|
|
Equivalent of HTTP headers. Each meta element must contain either a http-equiv attribute or a name attribute. |
|
|
Used for meta types that have no HTTP equivalent. Each meta element must contain either a name attribute or a http-equiv attribute. |
The following meta tag instructs the user agent to expire this page from the cache after 1 day (86,400 seconds).
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
<meta forua="true" http-equiv="Cache-Control" content="max-age=86400"/>
</head>
<!-- Rest of content here -->
</wml>
Some devices will not refresh the deck if the deck is navigated to with the prev element. The must-revalidate parameter may be used to override this. The following example prevents the page from being cached.
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
<meta forua="true" http-equiv="Cache-Control" content="must-revalidate"/>
<meta forua="true" http-equiv="Cache-Control" content="no-cache"/>
</head>
<!-- Rest of content here -->
</wml>
Related articles
Related discussion
-
Binary Studio | software development outsourcing Ukraine
by shane124 (4 replies)
-
ideas in building a captive portal
by sjranjan (2 replies)
-
A particular gallery image
by margy80 (0 replies)
-
(Very urgent)how to assign the value of the variable in javascript function into php variable
by mazhar_qayyum (3 replies)
-
Iterating through DB rows by column name
by fil.moore (0 replies)
Related podcasts
-
EarthClassMail.com - Moving from LAMP to .NET 3.5
Scott chats with Matt Davis, architect at EarthClassMail.com, about their move from a LAMP stack (Linux/Apache/mysql/PHP) to .NET 3.5. What's working, what's not, and what kinds of issues are they running into as their architect their solution.
Events coming up
-
Dec
3
The Auckland PHP December meetup
Auckland, New Zealand
Topic: Magento E-Commerce platform Speaker: Robert Popovic, LERO9, Robert is the Technical Director and co-founder of LERO9. Robert attended the Electrotechnical Faculty at The University of Belgrade where he graduated with a Masters in Computer Science and Information Technology. Robert has worked exclusively in the field of web and software development throughout his career.
hi
I am Jagannath working as Sr.Programmer in Med Write India Ltd. I have one doubt that how to search the latest modified file on the stipulated time and date.If you will help me then i will be happy
Bye
Jagannath
my alternate email address is b_jagan03@yahoo.co.in
Phno : 09849654314
Nice articlae but require more info on this
This thread is for discussions of Wireless Markup Language (WML) Tutorial.