How to remove the default gap between H1 and other HTML elements | Using CSS
Often
it is required to remove the default gap between h1 and other HTML elements for
this we have to set the values of margin and padding properties to 0.
Here
is an Example:
<html>
<h1>My heading</h1>
</html>
CSS code to remove the gap
h1{ margin:0; padding:0;}
Comments
Post a Comment
Thanks for Visiting for any questions or suggestions please comment below
Cheers,