How to remove newline after h1 tags with HTML?

Spread the love

To remove newline after h1 tags with HTML, we set the display property.

For instance, we write

h1,
h2 {
  display: inline;
}

to make h1 and h2 elements display inline with display: inline; to remove the new line after the h1 and h2 elements.

Leave a Reply

Your email address will not be published. Required fields are marked *