Wrapping Gutenberg Blocks with a div/section/article

Use ‘Groups’: If you do not see the ‘Group’ option, like me, you’ll have to update WP.

After that, simply create a group, then add new blocks or drag existing blocks into it. Select the group and add HTML Anchors and classes via the ‘Advanced’ tab of the block’s menu.