正在加载图片...
</head> <form method="post"name="UserLogin"action="7-1-S php"> p>账号:< nput type="ext"name=" UserNal maxlength=20"width=30"> <p>口令:< input type=" password"name=" UserPWD" maxlength="20"width="30"> p>< input type=" submit"name=" Submit" value="提交表单"> </html> 1.2标签 元素介绍: label元素主要用在表单元素中定义标签,以实现对其他表单元 素的说明。 元素说明: (1)<labe1>元素可以使用id、 style、 class等核心属性,但 通常不需要 value属性,因为该元素不传递值。 (2)< label元素只是输出了文本内容。使用该标签而不直接使 用文字内容的原因在于,使用该标签可以使得和该元素相关联的元素 形成焦点。部分浏览器是支持。 案例: 示例7-2:标签 <Doctype htm> <meta charset="utf-8> <title>label</title> <form method="post"name="UserLogin"action="7-2-Sphp"> < abel for=" UserName">账号:</abe> <input type="text"name"UserName"width=30"> 3《网页设计与网站规划》讲稿/河南中医学院互联网应用技术研究所/ht/ bs. 51xueweb cn3 《网页设计与网站规划》讲稿 / 河南中医学院互联网应用技术研究所 / http://labs.51xueweb.cn </head> <body> <form method="post" name="UserLogin" action="7-1-S.php"> <p>账号:<input type="text" name="UserName" maxlength="20" width="30"> <p>口令:<input type="password" name="UserPWD" maxlength="20" width="30"> <p><input type="submit" name="Submit" value="提交表单"> </form> </body> </html> 1.2 标签 元素介绍: label 元素主要用在表单元素中定义标签,以实现对其他表单元 素的说明。 元素说明: (1)<label>元素可以使用 id、style、class 等核心属性,但 通常不需要 value 属性,因为该元素不传递值。 (2)<label>元素只是输出了文本内容。使用该标签而不直接使 用文字内容的原因在于,使用该标签可以使得和该元素相关联的元素 形成焦点。部分浏览器是支持。 案例: 示例 7-2:标签 <!doctype html> <html> <head> <meta charset="utf-8"> <title>label</title> </head> <body> <form method="post" name="UserLogin" action="7-2-S.php"> <p> <label for="UserName">账号:</label> <input type="text" name="UserName" width="30"> <p>
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有