What are the best practices for downloading a PDF file to view it on a Mac instead of in a browser window?

To download a PDF file to view it on a Mac instead of in a browser window, it is best practice to use the 'download' attribute in the anchor tag when linking to the PDF file. This attribute prompts the browser to download the file instead of opening it in the browser window. This ensures that the PDF file is saved locally and can be opened with a PDF viewer on the Mac.

<a href="example.pdf" download>Download PDF</a>