behavior:file-icon sample

behavior:file-icon Windows Shell services to retrieve and draw icon associated with the file or extension.

To get file name behavior:file-icon is using value of filename attribute. If there is no such attribute then it uses text of the DOM element as a file name.

<select> with <option>s using behavior:file-icon:

text as a file name: and with attribute filename:

Use -icon-size:"large" CSS attribute or icon-size="large" DOM attribute if you need to use large icons: