wml入门之标签篇

跑了一个页面,里面有好多标签,我配有注释,贴出来供大家学习。

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
  <!--标签练习-->
  <card id="card1" title="Tutorial">
     <p>
	 <a href="wap.ifeng.com">凤凰网</a>
	 </p>
	
	<fieldset title="set">
	Height <input type="text" size="3"></input>
	Weight <input type="text" size="3"></input>
	<img src="img/123.gif"/>
	</fieldset>
	
     <select>
     <optgroup label="Swedish Cars">
      <option value="volvo" selected="selected">Volvo</option>
      <option value="saab">Saab</option>
     </optgroup>
     <optgroup label="German Cars">
        <option value ="mercedes">Mercedes</option>
        <option value ="audi">Audi</option>
     </optgroup>
     </select>
     
     <table columns="3" border="1">
     <tr>
     <td>Cell 1</td>
     <td>Cell 2</td>
     <td>Cell 3</td>
     </tr>
     </table>
     
<p>
<select>
<option value="htm">HTML Tutorial</option>
<option value="xml">XML Tutorial</option>
<option value="wap">WAP Tutorial</option>
</select>
</p>

<p>
<select multiple="true">
<option value="htm">HTML Tutorial</option>
<option value="xml">XML Tutorial</option>
<option value="wap">WAP Tutorial</option>
</select>
</p>
<p>
<!-- 退回前一个页面 -->
 <anchor>
  Previous Page
  <prev/>
 </anchor><br/>
 <!-- 下一个页面 -->
     <anchor>
     Next page
     <go href="test.wml"/>
     </anchor>
</p>
<p>
 <!-- 刷新页面,并同时初始化一个变量x -->
 <anchor>
  Refresh this page
  <go href="yanlan.wml"/>
  <refresh>
  <!-- 设置变量 -->
   <setvar name="x" value="30"/>
  </refresh>
 </anchor>
</p>
<p>
 <do name="back" type="prev" label="Back">
 <!-- 该标签可以组织要发生的动作 -->
  <noop/>
 </do>
</p> 
  </card>
</wml>

 

你可能感兴趣的:(html,xml,Go,WAP)