JavaWeb初体验

1.HTML标签

---Html basic document

<html>
<head>
<title>显示在网页标签处</title>
</head>
<body>
整个网页的内容
</body>
</html>
---Text Elements
<p>段落标签</p>
<br> (line break)---换行
<hr> (horizontal rule)---分割线
---Links,Anchors,and Image Element
<a href = "http://www.baidu.com"/>---链接到指定网址
<a href = "ok.html"/>---连接到自定义的html,需要在相同目录下
<a href = "#tips"/>---跳转到本网页的指定项---<a name = "tips">
---无序列表与有序列表
<ul>---无序列表
	<li>列表第一项<li>
	<li>列表第二项</li>
</ul>
<ol>---有序列表
	<li>列表第一项<li>
	<li>列表第二项</li>
<ol/>
---Tables
<table border = "1">---指定边框
<tr>---横行
	<tb>
	---竖列
	</tb>
</tr>
</table>
---Forms
<form action = "ok.html">---指定submit按钮需要执行的动作
<input type = "text" name = "lastname">---文本框
<input type = "password">---密码框
<input type = "checkbox" checked = "checked">---选择框,记住密码样式
<input type = "radio" name checked = "chexked">---单选框,要实现单选需要设置name属性相同
<input type = "submit">---确认框
<input type = "reset">---重置表单,将内容置空
<select>
	<option selected>Apple---默认选中
	<option>bananas
</select>
<textarea name = "Commmit" rows = "60" cols = "20">---文本域
</textarea>
</form>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值