有序列表/无序列表用(ul)
<html>
<body> <h4>一个有序列表:</h4> <ol> <li>咖啡</li> <li>茶</li> <li>牛奶</li> </ol> </body>
</html> 不同类型的无序列表 type="square""circle""disc"
<html>
<body> <h4>Disc 项目符号列表:</h4>
<ul type="disc"> <li>苹果</li> <li>香蕉</li> <li>柠檬</li> <li>桔子</li> </ul> 不同类型的有序列表 如:type="A""a""Ⅰ"等
<h4>数字列表:</h4>
<ol> <li>苹果</li> <li>香蕉</li> <li>柠檬</li> <li>桔子</li> </ol> <h4>字母列表:</h4>
<ol type="A"> <li>苹果</li> <li>香蕉</li> <li>柠檬</li> <li>桔子</li> </ol> 嵌套列表
<html>
<body>
<h4>一个嵌套列表:</h4>
<ul> <li>咖啡</li> <li>茶 <ul> <li>红茶</li> <li>绿茶</li> </ul> </li> <li>牛奶</li> </ul> </body>
</html> 定义列表
html>
<body>
<h2>一个定义列表:</h2>
<dl>
<dt>计算机</dt> <dd>用来计算的仪器 ... ...</dd> <dt>显示器</dt> <dd>以视觉方式显示信息的装置 ... ...</dd> </dl> </body>
</html> 表单:文本域
<html>
<body>
<form>
名: <input type="text" name="firstname"> <br /> 姓: <input type="text" name="lastname"> </form> </body>
</html> 密码域
<html>
<body>
<form>
用户: <input type="text" name="user"> <br /> 密码: <input type="password" name="password"> </form> <p> 请注意,当您在密码域中键入字符时,浏览器将使用项目符号来代替这些字符。 </p> </body> </html>
<input type="radio" name="sex" value="male" /> Male<br /> <input type="radio" name="sex" value="female" /> Female</form> <input type="checkbox" name="bike" /> I have a bike <br /> <input type="checkbox" name="car" /> I have a car </form> action="html_form_action.asp" method="get"> Username: <input type="text" name="user" /> <input type="submit" value="Submit" /> 男性: <input type="radio" checked="checked" name="Sex" value="male" /> <br /> 女性: <input type="radio" name="Sex" value="female" /> </form> </html> <select name="cars"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="fiat">Fiat</option> <option value="audi">Audi</option> </select> </form> </html> <select name="cars"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="fiat" selected="selected">Fiat</option> <option value="audi">Audi</option> </select> </form> </html> <body> This example cannot be edited because our editor uses a textarea for input, and your browser does not allow a textarea inside a textarea. </p> The cat was playing in the garden. <input type="button" value="Hello world!"> </form> <legend>健康信息:</legend> <form> <label>身高:<input type="text" /></label> <label>体重:<input type="text" /></label> </form> </fieldset> </html> <body> <p>First name: <input type="text" name="fname" /></p> <p>Last name: <input type="text" name="lname" /></p> <input type="submit" value="Submit" /> </form> </html> I have a bike: <input type="checkbox" name="vehicle" value="Bike" checked="checked" /> <br /> I have a car: <input type="checkbox" name="vehicle" value="Car" /> <br /> I have an airplane: <input type="checkbox" name="vehicle" value="Airplane" /> <br /><br /> <input type="submit" value="Submit" /> </form> </html> <form action="MAILTO:someone@w3school.com.cn" method="post" enctype="text/plain"> 姓名:<br /> <input type="text" name="name" value="yourname" size="20"> <br /> 电邮:<br /> <input type="text" name="mail" value="yourmail" size="20"> <br /> 内容:<br /> <input type="text" name="comment" value="yourcomment" size="40"> <br /><br /> <input type="submit" value="发送"> <input type="reset" value="重置"> </body> </html> |
|