1
表单是一个包含表单元素的区域。
表单元素是允许用户在表单中输入内容,比如:文本域(textarea)、下拉列表、单选框(radio-buttons)、复选框(checkboxes)等等。
表单使用表单标签 <form> 来设置:
写法为;<input type="text" name=“” value=“”>用户名
<input type="password‘’ name=“” value="'>密码
<input type="checkbox“” name=“” value="'>复选框
<input type="radio“” name=“” value="'>单选框
<input type="hidden“” name=“” value="'>隐藏框
<select name="‘ ’id=""> <option value></option>下拉列表框
<textarea name=">文本域
<input type="file">打开文件
<input type="reset“” name=“” value="'>重置
<input type="submit“” name=“” value="'>提交
2 frame框架的组成一个页面如果拆分左右或者上下两个,左右结构的话是cols 上下结构的话是rows,frame框架中不能有head body的出现,是单独的引用表格,示例如下
<html>
<frame>
<frameset rows="80%,20%">
<frame src="head.html" frameborder="0" noresize scrolling=“no”>
<frameset cols="70%,30%">
<frame src="nav.html" frameborder="0" noresize name=“nav”>
<frameset src="kingdom.html" noresize name="room">
<iframe src="demo_iframe.htm" name="iframe_a"></iframe> <p><a href="http://www.baidu.com" target="iframe_a">百度</a></p>
</frameset>
</html>
其中head是单独的一个文档代码我们可以引用过来,就是正常的写代码就可以,引用的frame当中就可以!
3 css的字体,在html中如果想改变字体的大小,颜色我们需要单独创立一个以.css 为扩展名的文件,用一个span注释代表,然后把html中要输入的字体颜色通过css来实现,示例如下,html部分
<div style="color:orange; font-size:100px;">hello,world</div>
<div id="d1" style="color:brown">hello,world</div>
<b>第一名</b>
<div id="d1">hello,world</div>
<p class="p1">欢迎光临</p>
<span>第一节</span>
<br>
用户名:<input type="text" name="" value="text" align="left">
<br>
密码:<input tyle="password" name="" value="password">
<br>
css部分
span {
font-size: 20px;
border: 2px solid #000;
}
#d1 {
font-size: 100px;
color: red
}
.p1 {
color: rgb(82, 235, 108);
}
[type="text"] {
background: #000
}
[type="password"] {
background: #000
}
4 如何在一个网页中插入音频,视频其基本格式为
<audio src=""> controls autoplay(自动播放)>
