<tilte>和<body>标签

<html>
	<head>
		<meta name="keywords" content="关键字1,php, html,css"/>
		<meta name="description" content="网页的描述"/>
		<meta name="robots" content="all/none/index/noindex/follow/nofllow"/>
		<!--告诉搜索引擎爬取设置-->
		<meta name="author" content="作者"/>
		<meta name="copyright" content="版权"/>
	    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
	    <meta http-equiv="refresh" content="3;url=http://www.baidu.com" />
	    <meta http-equiv="expires" content="0" />
	    <meta http-equiv="Windows-Target" content="_top" />
	    <!--不允许被嵌入-->
	    <meta http-equiv="expires" content="0" />
		<!--禁止浏览器使用缓存-->
		<title>标题</title>
		<base href="www.bingo.com" />
		<!--用于设定浏览器中文件的绝对路径-->
		<link rel="stylesheet" type="text/css" href="css/test.css" />
		<!--链接CSS文件-->
	</head>
	<body>
		<p>测试link标签</p>
	</body>
</html>

 <body>标签中的属性有如下等

<body text="文本颜色" bgcolor="背景颜色" background="背景图片" link="连接颜色"
	vlink="点击连接颜色" alink="鼠标放上面时的颜色" topmargin="上边距大小">
    <p>测试</p>
</body>

  提倡用样式CSS控制,不写在body中,如下

<html>
	<head>	
		<title>标题</title>
		<!--用样式控制body-->
		<style>
			body{
				margin: 0px;
				padding: 0px;
				background: blue;
				color:red;
			}
		</style>
	</head>
	<body >
		<p>测试</p>
	</body>
</html>

注:所有元素的通用属性Id name class style

转载于:https://my.oschina.net/u/188860/blog/350283

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值