Html 学习笔记1
2016-03-01 23:01
453 查看
HTML(hypertext markup language)
javascriptDOM html与xml的接口
write(),written()
createElement(tag) getElementByld(id)
getElementsByName(name),getElementsByTagName(tag)
BOM (broser)
widow.open(),widow.close()
resizeBy(),moveTo()
alert(),confirm(),prompt()
setTimeout(callback,time),setInterval()
clear
alert(message)
ECMAScript
可以在html中直接嵌入js
<script>
语法规范(differ from C++)
不仅可以字母开头,而且可以$开头
$name
弱类型,动态类型
var表示所有变量,undifined 是未定义变量
scope function rather than embrace
在html里面的//是会显示出来的= =
<!--123-->注释要这么写= =
判断 alert() 转换 console.log()
全等和不全等
enviroment
netpad
run and debug
<!DOCTYPE HTML> <html> <head> <titlt> test </title> <meta charset = "UTF-8"/> </head> <body> <h1>Hello World!</h1> //insert <!-- failure commment --> <script type = "text/javascript"> function sayHello(){ alert("Hello World!"); } sayHello; </script> //more than one document <script type = "text/javascript" src="Hello.js"></script> </body> </html>
相关文章推荐
- 在Windows 8.1的IE 11中屏蔽双击放大功能
- Apple官网研究之使用Justify布局导航
- 通过Mootools 1.2来操纵HTML DOM元素
- WEB标准网页布局中尽量不要使用的HTML标签
- Flash 与 html 的一些实用技巧
- html工作中表格<tbody>标签的使用技巧
- HTML 向 XHTML1.0 兼容性指导
- C#自写的一个HTML解析类(类似XElement语法)
- 没有文件大小限制并免费的PDF到HTML转换工具
- JavaScript与HTML结合的基本使用方法整理
- css实现气泡框效果(实例加图解)
- html链接与文本标签们
- html活用软字符连接符
- 浅谈html中id和name的区别实例代码
- HTML <!DOCTYPE> 标签
- asp中实现清除html的函数
- Android的TextView与Html相结合的具体方法
- jQuery设置和获取HTML、文本和值示例
- 『jQuery』.html(),.text()和.val()的概述及使用