WML[转]
Validate WML
WML 参考
w3pop.com / 2006-09-21
The links in the "Start tag" column points to more useful information about the specific tag. It also cover attributes of the specific tag and code examples!
"Start tag"栏里的链接指向关于特殊标签的更多有用信息,而且还包括特殊标签和代码例子的属性
Deck / Card Elements
Deck / Card元素
| Start tag 始标签 |
Purpose 目的 |
WML |
|---|---|---|
| <access> | Defines information about the access control of a deck 定义了有关对一个平台的访问控制的信息 |
1.1 |
| <card> | Defines a card in a deck 定义了平台中的一个卡片元素 |
1.1 |
| <head> | Contains information about the document 包含了该文档的相关信息 |
1.1 |
| <meta> | Defines meta information about the document 定义了与该文档相关的meta信息 |
1.1 |
| <template> | Defines a code template for all the cards in a deck 定义了平台中的所有开篇的一个代码模板 |
1.1 |
| <wml> | Defines a WML deck (WML root) 定义了一个WML 平台(基于WML) |
1.1 |
| <!--> | Defines a comment 定义了一段注释 |
1.1 |
Text Elements
| Start tag 始标签 |
Purpose 目的 |
WML |
|---|---|---|
| <br> | Defines a line break 定义了一行的断开 |
1.1 |
| <p> | Defines a paragraph 定义了一段 |
1.1 |
| <table> | Defines a table 定义了一张表格 |
1.1 |
| <td> | Defines a table cell (table data) 定义了一个表格元素(表格数据table data) |
1.1 |
| <tr> | Defines a table row 定义了表格行(table row) |
1.1 |
Text Formatting Tags
文本格式标签
| Start tag 始标签 |
Purpose 目的 |
WML |
|---|---|---|
| <b> | Defines bold text 定义了粗体文本 |
1.1 |
| <big> | Defines big text 定义了大型文本 |
1.1 |
| <em> | Defines emphasized text 定义了强调文本 |
1.1 |
| <i> | Defines italic text 定义了斜体文本 |
1.1 |
| <small> | Defines small text 定义了小型文本 |
1.1 |
| <strong> | Defines strong text 定义了粗体文本 |
1.1 |
| <u> | Defines underlined text 定义了下划线文本 |
1.1 |
Anchor Elements
“锚”元素
| Start tag 始标签 |
Purpose 目的 |
WML |
|---|---|---|
| <a> | Defines an anchor (a link) 定义了一个“锚”(一个链接) |
1.1 |
| <anchor> | Defines an anchor (a link) 定义了一个“锚”(一个链接) |
1.1 |
Image Elements
图像元素
| Start tag 始标签 |
Purpose 目的 |
WML |
|---|---|---|
| <img> | Defines an image 定义了一个图像 |
1.1 |
Event Elements
事件元素
| Start tag 始标签 |
Purpose 目的 |
WML |
|---|---|---|
| <do> | Activates a task when the user clicks on a word/phrase on the screen 用户点击屏幕上单词/短语时激活任务 |
1.1 |
| <onevent> | Contains code to be executed when one of the following events occurs: onenterbackward, onenterforward, onpick, ontimer 包含了当下列事件之一发生时,会被执行的代码:onenterbackward, onenterforward, onpick, ontimer |
1.1 |
| <postfield> | Contains information to be sent to the server along with a <go> tag 包含着与<go>标签一起被送往服务器的信息 |
1.1 |
Task Elements
任务元素
| Start tag 始标签 |
Purpose 目的 |
WML |
|---|---|---|
| <go> | Represents the action of switching to a new card 描述了切换到新卡片的行为 |
1.1 |
| <noop> | Says that nothing should be done (noop stands for "no operation"). Used to override deck-level elements 指出不该有任何的操作(noop的意思是“没有操作的(no operation)”)。用于忽略平台级别的元素 |
1.1 |
| <prev> | Represents the action of going back to the previous card previous card[上一级卡片]代表了返回到前面的卡片的行为 |
1.1 |
| <refresh> | Refreshes some specified card variables. If any of the variables are shown on the screen, this task also refreshes the screen 更新一些指定的卡片变量,如果这些变量会显示在屏幕上,这个任务还会刷新屏幕 |
1.1 |
Input Elements
输入元素
| Start tag 始标签 |
Purpose 目的 |
WML |
|---|---|---|
| <fieldset> | Used to group together related elements in a card 用于把相关元素分组集合到一张卡片里。 |
1.1 |
| <input> | Defines an input field (a text field where the user can enter some text) 定义了一个输入区域(一个用户可以输入文本的区域) |
1.1 |
| <optgroup> | Defines an option group in a selectable list 定义了在可选列表中的一个选项组 |
1.1 |
| <option> | Defines an option in a selectable list 定义了可选列表中的一个选项 |
1.1 |
| <select> | Defines a selectable list 定义了可选列表 |
1.1 |
Variable Elements
变量元素
| Start tag 始标签 |
Purpose 目的 |
WML |
|---|---|---|
| <setvar> | Sets a variable to a specified value in a <go>, <prev>, or <refresh> task 在<go>, <prev>, 或 <refresh> 任务里的一个制定值中设置一个变量 |
1.1 |
| <timer> | Defines a card timer 定义了卡片计时器 |
1.1 |
WML 字符实体
w3pop.com / 2006-09-21
Character Entities
字符实体
| Result 结果 |
Description 描述 |
Entity Name 实体名 |
Entity Number 实体号 |
|---|---|---|---|
| & | ampersand “和” |
& | & |
| ' | apostrophe 省略符 |
' | ' |
| > | greater-than 大于 |
> | > |
| < | less-than 小于 |
< | < |
| non-breaking space 无间断空格 |
|   | |
| " | quotation mark 引号 |
" | " |
| | soft hyphen 软连字符 |
­ | ­ |

浙公网安备 33010602011771号