select the Headline block ( in visual editor ). Then in Advanced panel in the sidebar you will see a field for HTML Anchor field. That is the id attribute. Add your anchor in there.
Note that field is a core WP field, so its there for the majority of blocks.