If you want to test this feature, follow these steps:
Click on the Account tab.
Navigate to the records details page in which you want to attach the document.
Navigate to the list related to Notes & Attachments.
Click on the Attach file button and try to upload the HTML file, and you will get an error, as shown in the following screenshot: