Wml-meta-tag

提供:Dev Guides
移動先:案内検索

WML <meta>タグ

<meta>要素は、WMLデッキに任意のメタ情報のアイテムを配置します。 このアイテムは、プロパティ名とその値として構成されています。

任意の数の<meta>要素を<head>要素に入れることができます。 これにより、インデックス作成の目的でキーワードを追加したり、デッキのコンテンツに関するヒントを保存したり、その他の情報を保存したりできます。

属性:

<meta>要素は、次の属性をサポートしています。

Attribute Value Description
name string Gives the name of this property. Meta-information with this attribute is intended for server-side applications, so it may be removed before it gets to the browser. Could be "keywords", "author", etc.
http-equiv string An alternative for the name attribute.
forua
  • true
If present and set to true, indicates that the property is intended for the use of the browser.
content string Should specify a description of the name attribute
scheme string Can specify a format or structure that some properties may need to interpret their values. This attribute is used by few properties.
class class data Sets a class name for the element.
id element ID A unique ID for the element.

例:

以下は、この要素の使用法を示す例です。

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
"http://www.wapforum.org/DTD/wml12.dtd">

<head>
   <meta name="keyword" content="WML"/>
   <meta http-equiv="Cache-control" content="no-cache"/>
</head>

<wml>

<card id="one" title="First Card">
<p>
This is the first card in the deck
</p>
</card>

<card id="two" title="Second Card">
<p>
Ths is the second card in the deck
</p>
</card>

</wml>