How to center <h3>
in the following code?
h1 {
color: #666;
margin: 20px 10px 0px;
padding: 0px 30px 0px 30px;
text-align: center;
}
h3 {
color: #ccc;
background-color: black;
margin: 0px;
padding: 10px 10px 10px 10px;
text-align: center;
display: inline-block;
}
<div>
<h1>title 1</h1>
<h3>title 3</h3>
</div>