Crownpeak (Retired)

Include information about document size within or next to the link

Why is this important?

Informing users up front about a file's format and size allows them to make an informed decision about whether or not to download it. Downloading a large file can have an impact on one's mobile data plan, or take a  long time over locations with a poor internet connection. In such cases, a user can make an informed decision specially if they have alternative options to download a file.

How can I resolve this issue?

Indicate the file size directly after the linked file


<a href="link_to_a_document.pdf" target="_blank">Document (25kb)</a>
<a href="link_to_a_document.pdf" target="_blank">Document (25mb)</a>

What topics do this checkpoint affect?

  • Usability

Can you explain how this checkpoint works?

This checkpoint examines the entire HTML source code of a page and reports if the <a href> tag contains the file type PDF/DOC/PPT/XLS and it isn't followed by a description that contains the file size such as KB/MB.

Labels (1)


Could you please share any references for this?


Aakash Bathla

Hello Aakash,

I have updated the article to provide a couple of examples that will pass this checkpoint.  We will search and find any <a> tags that reference a PDF, DOC, PPT, XLS, etc.  In that <a> tag we will search for the file size and if not found it will get flagged as an issue.  What I recommend is adding the size in the link text, see the examples above.  Those will pass the checkpoint as they contain the size and kb or mb.  Let us know if that helps or if you have any other questions.

Thank you,


Do you have to put the file size in the link text? can you add it in the <a> tag itself? 

I.e. instead of this: <a href="link_to_a_document.pdf" target="_blank">Document (25mb)</a></p>

what about this way?
<a href="link_to_a_document.pdf" target="_blank" title="File size is 25mb">Document</a></p>

Thank you, RT

Hello RT,

Your example will not pass the standard rule for this checkpoint.  The file size has to be in the link text or next to it.  It's best to include the file size in the link text.  This rule can be customized so I'm using the default/standard rule to show what will pass and what will not.  If you have a question on if something will pass it's best to submit a support case to crownpeak and we will be happy to check any examples against the rules in place for your instance.

Can't find what you are looking for?

Find Answers

Search our DQM Forum to find answers to questions asked by other DQM users.

Ask a Question

No luck? Ask a question. Our Product and Support teams are monitoring the Forum and typically respond within 48 hours.

Ask a Question