Display filetype icons in html a tags according to file type. Icons are placed automatically for every a tag based on the file extension of href attribute.
Currently supported files are: PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX and ZIP. You can easily edit the code to change icons and support other filetypes.
Download the src folder and include the css file in your html. Place icons folder in the same location as the css. See an example in docs folder.