1、html中出现中文乱码的情况插入下面的语句
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
2、字符实体


3、<a href='http://www.souhu.com' target='_blank'>到搜狐</a>
target="_blank":到一个新的页面
target="_self":在原始页面的基础上进行
<td></td>表示列
<table align="center" cellspacing="空隙大小" cellspadding="填充的大小" border='边框的大小'> </table>
cellspacing:表示空隙大小,指两个列,行间的距离
cellspadding:表示填充的大小,各行各列中的内容
4、标签
radio:单选框 ;submit:提交按钮
text:文本框;img:图片按钮
CheckBox:复选框;reset:重置按钮
如需显示小于号:< 或 < 或 <
大于号:>
5.javascript改变HTML元素的样式
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<title>菜鸟教程</title></head>
<body>
<h1>我的第一段Javascript</h1>
<p id="demo">
javascript 能改变HTML元素的样式。</p>
<script>
function myFunction()
{
x=document.getElementById("demo")#找到元素
x.style.color="#ff0000";#改变样式
}
ss</script>
<button type="button" onclick="myFunction()">点击这里</button>
</body></html>
476

被折叠的 条评论
为什么被折叠?



