I have two html elements i.e label and anchor and both of them are inline. If I set their display property to display: inline-block and give label margin-top of 50px, why along with label, anchor tag is also moving? Here i have only targeted label.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Practise</title>
<style>
label{
margin-top: 50px;
display: inline-block;
}
</style>
</head>
<body>
<label>Hello</label>
<a href="#">iamlink</a>
</body>
</html>