# Why a download link does not make its target available offline

Canonical: https://githtml.com/guides/download-attribute-not-embedded-file
Published: 2026-11-23
Publisher: WaveTech LLC / gitHtml

The download attribute requests download behavior for a link; it does not embed the target file or prove that the file has already been saved. Keep attachments in an explicitly verified reading packet, or include the essential information in the HTML. Label unavailable attachments honestly instead of leaving a button that implies offline access.

## Identify the hidden dependency

A report can contain a prominent Download data link while only the report itself has been retained. The link remains visible offline because it is markup, but its destination still requires another resource request.

Build an attachment inventory with the visible label, target URL or path, file type, expected version, and whether the attachment is essential or optional. A button labeled Download appendix can point to a live report generator rather than a fixed file. In that case, preserving the link does not preserve the reviewed appendix. Capture the approved output through the appropriate workflow and record its identity. Do not assume that changing the link text to a filename makes the target local, or that the download attribute overrides every browser and embedded-reader policy.

## Prepare the intended reading copy

Identify which attachments are necessary to understand the conclusions. Preserve authorized copies through the reader's actual supported workflow, and distinguish them from optional online references. Do not assume a browser's treatment of the download attribute is identical in every embedded container.

For an essential spreadsheet or dataset, decide what information the reading task requires. A concise table of verified findings may belong directly in the HTML, while the full dataset remains an explicitly separate attachment. Do not flatten a complex workbook into a screenshot and imply that formulas or interactive analysis are included. Preserve units, filtering assumptions, and source date in the summary. If the attachment contains confidential information, confirm its distribution scope separately from the report; permission to share a conclusion does not necessarily authorize sharing the entire supporting file.

1. Inventory linked attachments separately from the HTML document.
2. Include essential attachment information directly when a dependable portable representation is needed.
3. Verify each retained target through the actual reading workflow and label online-only links.

````html
<p>Supporting dataset: online reference, not included in this reading copy.</p>
````

## Verify the offline result

Test the destination from the final artifact without connectivity. A filename displayed beside the link is not evidence of local availability.

Test each retained attachment through the same supported route readers will use, including its actual content rather than only the link's existence. Open a representative section or sheet and compare its version with the report citation. Label unavailable targets as online references and provide enough context to find them later. Keep the attachment inventory with the release packet so a future update does not replace the report while leaving a mismatched appendix behind.

## Sources and further reading

- [MDN: a](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/a)

## Related guides

- [Treat an embedded PDF as a separate offline dependency](https://githtml.com/guides/embedded-pdf-object-offline-html)
- [Rebase CSS resource paths when moving styles into HTML](https://githtml.com/guides/inline-css-relative-url-rebasing)
- [Inspect images and fonts nested inside an inline SVG](https://githtml.com/guides/inline-svg-nested-offline-dependencies)
- [Do not rely on localStorage values in a shared HTML copy](https://githtml.com/guides/localstorage-not-part-of-html-export)

Editorial approach: https://githtml.com/guides/about
