Wml-fonts
提供:Dev Guides
WML-フォント
WMLは<font>要素をサポートしていませんが、他のWML要素があり、下線付きテキスト、太字テキスト、斜体テキストなどのさまざまなフォント効果を作成するために使用できます。
これらのタグを次の表に示します。
WML Elements | Purpose |
---|---|
<b> | Defines bold text |
<big> | Defines big text |
<em> | Defines emphasized text |
<i> | Defines italic text |
<small> | Defines small text |
<strong> | Defines strong text |
<u> | Defines underlined text |
これらの要素は、次の属性をサポートしています。
Attribute | Value | Description |
---|---|---|
xml:lang | language_code | Sets the language used in the element |
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">
<wml>
<card title="Text Formatting">
<p>
<b>bold text</b><br/>
<big>big text</big><br/>
<em>emphasized text</em><br/>
<i>italic text</i><br/>
<small>small text</small><br/>
<strong>strong text</strong><br/>
<u>underlined text</u>
</p>
</card>
</wml>
これにより、次の結果が生成されます。