<!DOCTYPE html>
<html>
<head>
<style>
#te{
width: 100px;
height: 100px;
display:block;
background:yellow;
}
#tes{
text-align:center;
margin-left:auto;
margin-right:auto;
display:block;
line-height:90px;
font-size:20px;
}
div{
width:100px;
height:100px;
background:red;
text-align:center;
margin-left:center;
margin-right:center;
line-height:90px;
font-size:20px;
}
</style>
</head>
<body>
<span id="te">
<span id="tes">hello</span>
</span>
<div>welcome</div>
</body>
</html>