表单:获取不同类型的用户输入;
<form>表单<input>输入域<textarea> 文本域<label>控制标签<fieldset>定义域<legend>域标题<select>选择列表<optgroup>选项组<option>下拉列表选项;<button>按钮;
============================
<body>
<form>
用户名:
<input type="text">
密码:
<input type="password">
<br/>
苹果<input type="checkbox">
香蕉<input type="checkbox">
橘子<input type="checkbox">
<br/>
男<input type="radio" name="sex">
女<input type="radio" name="sex">//name使男女成为一个组;
<br/>
选择:
<select>
<option>哈哈</option>
<option>hhhhdddd</option>
<option>gg </option>
</select>
<input type="button" value="按钮">
<input type="submit" value="提交">
</form>
<textarea cols="30" rows="30">添加一些内容</textarea>
<button type="button">ghgh</button>
</body>
==============================
框架:
框架标签<frame>过时
框架集标签<frameset>过时
常用标签
noresize:固定框架大小
cols:列
rows:行
內联框架:iframe
==============================
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<frameset rows="20%,50%,30%">
<frame src="Framea.html"></frame>
<frame src="frameb.html"></frame>
<frame src="framec.html"></frame>
</frameset>
</html>
=============================
<iframe src="frameb.html"></iframe>//在当前页面中加载一个新的html,
<a href="http://www.baidu.com" target="_parent">点击</a>
target="_parent”,target="_top”的使用要在多承载页面才能体现它自身的作用;
=======================
背景:
<body background="2.jpg">
<body bgcolor="red">
实体:当有些符号不能直接打印出来的时候我们就需要实体;可以百度中查询对应的实体表;
<html>输出的样子是<html>