小白的ASP.NET入门第一天之HTML学习
相关笔记(标签)
1.盒子 div
2.css 给网站加一些美工
3.a 超链接标记 target 新页面打开 行内标签
4.p段落 自动换行 块级标签
5.<br/ >换行标签 一个就够了
6.<hr/ >下划线 一个
7. b 加粗标签
8.ul 列表标签 就是像列表
9.h1 h2 h3 标题标签
10.table 表格标签 tr行 td列 th标题标签
11.<input type=" "/ >
其中type属性 :
text 文本框
password 密码形式输入 值看不到
button 按钮
submit 提交按钮 结合表单(form标记)使用 见15点
checkbox 多选框
radio 单选框
hidden 隐藏
file 上传控件
12.select 选择 下拉列表框 结合option使用
13.img 图片标记 src图片路径属性 放在同一目录之下 值就是图片所在路径
14.video视频标签 src视频路径属性
15.form标签 提交 表单
<head>
<title>hello world~</title>
</head>
<body>
<div style="width:40px;height:40px;border:1px solid red;">
123
</div>
<a href="http://www.baidu.com" target=blank">BAIDU</a>
<br>
<a>1111</a>
<p>label1</p>
<hr>
<p>label2</p>
<ul>
<li>1</li>
<li>2</li>
</ul>
<h1>1111</h1>
<table border="1" cellspacing="0" cellpadding="0" width="400" height="100">
<tr>
<th>888</th>
<th>999</th>
</tr>
<tr>
<td>1.1</td>
<td>1.2</td>
</tr>
<tr>
<td>2.1</td>
<td>2.2.</td>
</tr>
<tr>
<td>3.1</td>
<td>3.2</td>
</tr>
</table>
<br/>
<input type="text"/>
<input type="password"/>
<input type="hidden"/>
<input type="button"value="login"/>
<input type="submit"value="handin"/>
<input type="checkbox"value="handin"/>
<input type="radio"value="handin"/>
<input type="file"/>
<br/>
<select>
<option>1</option>
<option>1</option>
<option>2</option>
</select>
<br/>
<form>
username:<input type="text" name="username"/>
<br>
<input type="submit" value="handin"/>
</form>
<img src="1.jpg" width="100px" height="100px">
<video src="1.avi" width="200px" height="100px">
</body>
</html>