My guess is the docs you are reading are for Server, not Cloud.
Natively, Cloud does not have an HTML macro, you will need to add one of the apps that provide one.
You can't add macro on Confluence cloud. You have to have an app like :
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.