Is it feasible to dynamically set the ALT and title attributes of an image element to match the file name? It seems like this could potentially be achieved using the CSS content property, although I am not very familiar with the process.
For example:
<img src="file_name.jpg" alt="File Name" title="File Name">
If this is indeed possible, I would also like both attributes to have clean and formatted values without any underscores. Perhaps this can be accomplished through CSS as well?