一 Framset 标签定义了每个框架中的 html 文档,
- 1 <framset cols="25%,75%">
- <frame src="frame_a.htm"> <frame src="frame_b.htm"> </frameset>
2 内联框架 inframe
<iframe src="URL"></inframe> URl 只想隔离页面的位置
iframe 属性默认值是像素, 按照百分比设置,<iframe src="demo_iframe.htm" width="200" height="200"></iframe>
3 使用 iframe 作为连接的目标(target), 链接 target 的属性必须引用 iframe 的 nmae 属性,
<iframe src="demo_iframe.html" name="iframe_a"></iframe> <p><a href="http://www.w3cSchol.com.cn" target="iframe_a">W3cSchool.com.cn</a></p>
4 背景颜色设置 < body > 拥有两个配置背景颜色的标签, 背景可以使颜色或者图片
<body background="clouds.gif">< body background="http://ww.3cSchool.com.cn/clouds.gif">
5JavaScript 使用 HTML 页面加强动态效果和交互性
- <html>
- <body>
- <script type="text/javascript">
- document.write("<h1>Hello world</h1>")
</script></body></html> 其中 noscript 标签用在说明浏览器不支持 JavaScript 语句的解释
像下面的这样 eg <srcipt type="text/javascript">
dooucment.write("Hello World")</script> <noscript> You browser does not support Javascript</noscript > 对于老式的浏览器不支持的时候就可以将 Script 语句进行注释, 这样浏览器就不会执行, 但是新的浏览器依然会读懂 Script 语句
- eg<script> type="text/javascript">
- <!-- document.write("Hello World")>
- //-->
- </script>
6title 标题标签的功能, 定义浏览器工具栏中的标题, 提供页面被收藏的显示标题, 以及显示在搜索引擎中的页面标题
一个简单的 HTML <!DOCTYPE html> <html><head><title>####</title> </head><body> The content of document </body></html>
<link> 标签 定义文档之外资源之间的关系 常用与连接样式表 eg <head> <link rel="stylesheet" type="text/CSS" href="mystyle.css"/></head>
7<style > 标签用于 HTML 文档样式信息可以扎起 style 元素中规定 HTML 元素在浏览器中的呈现的样式
- <head> <style type="text/css">
- body {background-color:yellow}
- p{color:blue}</style></head>
8HTML 元数据 (Metadata) <meta > 标签提供 HTML 文档的元数据, 但是元数据不会再页面上显示, 机器是刻度的元数据可以用于浏览器中重新加载页面, 搜索引擎 (关键词) 其他 web 服务
eg<meta name="description" content="Free web tutorials onHTML ,CSS, XML/> 定义页面描述:
<meta name="keywords" content="HTML, CSS , XML"/>
9HTML 实体, 字符实体 (character entities), URL -Uniform Resource Locator 同意资源定位器(URL) 用于定位万维网上的文档或者其他数据, eg http://www.w3School.com.cn/html/index.asp 遵循语法规则 scheme:// host.domain:port/path/filename scheme 定义因特网服务类型, host --- 定义域主机 domain 定义域名 port 是端口号
10URl 编码, 只能呢使用 ASCLL 字符集来通过 Internet 进行发送, URL 不能包含空格, URL 编码常使用 + 来替换空格
11Text Elements <br> line break <hr> horizontal rule
来源: http://www.bubuko.com/infodetail-2506894.html