--- title: Spaces around h1 tags date: 2021-08-11 updated_at: 2021-08-15 layout: post lang: en ref: spaces-around-h1-tags --- *EDIT*: Apparently, the behaviour below is consistent between Firefox and Chromium for links, but not for `

`. My conclusion is that the `

` behaviour is a Firefox quirk, but the `` is expected. --- The HTML below has selectable extra spaces after `

` tags: ```html Spaces around h1 tags

With spaces around when selecting this heading

Without spaces around

Is this expected behaviour?

``` The rendered output is:

With spaces around when selecting this heading

Without spaces around

Is this expected behaviour?

--- The same with links: ```html Spaces after a tags

With extra underlined space

Without extra underlined space

``` The rendered output is:

With extra underlined space after the link.

Without extra underlined space after the link.