块级元素和行内元素

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>块级元素和行内元素</title>
		<style>
			h1,h2,h3,h4,h5,h6{
				color: red;
				background: teal;
			}
			form{
				background: thistle;
				color: red;
			}
			select{
				background: indianred;
				color: red;
			}
			textarea{
				background: violet;
				color: red;
			}
			table{
				background: oldlace;
				color: red;
			}
			button{
				background: blanchedalmond;
				color: red;
			}
			hr{
				color: aquamarine;
			}
			p{
				background: tomato;
			}
			ol{
				background: aliceblue;
				color: red;
			}
			ul{
				background: palegreen;
				color: red;
			}
			div{
				height: 200px;
				width: 300px;
				background: khaki;
				color: red;
			}
			title{
				background: cadetblue;
				color: red;
			}
			label{
				background: lightskyblue;
				color: red;
			}
			span{
				background: darkcyan;
			}
			em{
				background: violet;
			}
			i{
				background: darkolivegreen;
			}
			a{background: blueviolet;}
			b{
				background: chocolate;
			}
			strong{
				background: navy;
			}
 		</style>
	</head>
	<body>
		<!--常用标签
		<h1></h1>
		<h2></h2>
		<h3></h3>
		<h4></h4>
		<h5></h5>
		<h6></h6>
      行内元素有:heda   meat   title  lable  span  br  a   style  em  b  i   strong

      块级元素有:body    select  textarea  h1-h6 html table  button  hr  p  ol  ul  dl  cnter  div
		-->
		<!--块级元素:-->
		<h1>块级元素和行内元素</h1>
		<h2>块级元素和行内元素</h2>
		<h3>块级元素和行内元素</h3>
		<h4>块级元素和行内元素</h4>
		<h5>块级元素和行内元素</h5>
		<h6>块级元素和行内元素</h6>
		<form>块级元素form</form>
		<select>块级元素select</select>
		<textarea>块级元textarea</textarea>
		<table>块级元素table</table>
		<button>块级元素button</button>
		<hr />
		<p>块级元素p</p>
		<ol>
			<li>块级元素ol</li>
		</ol>
     	<ul>
     		<li>块级元素ul</li>
     	</ul>
     	<div>块级元素div</div>
     	<!--行内元素:-->
     	<title>行内元素title</title>
     	<label>行内元素label</label>
     	<span>行内元素span</span>
     	<br />
     	<a>行内元素a</a>
     	<em>行内元素em</em>
     	<b>行内元素b</b>
     	<i>行内元素i</i>
     	<strong>行内元素strong</strong>
	</body>
</html>

 

转载于:https://www.cnblogs.com/web928943/p/9908121.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值