Adding .dds image to webpage

Just a simple question: how do I add a .dds image to my webpage?

I have a folder like this:

My folder contains a .html file and .dds file

It contains a .html file and .dds file. This is the code in csstest.html:

<!doctype html>
<html>
<body>
<img src="btn-border-normal.dds">
</body>
</html>

But when I run csstest.html, it always gives me this:

Why does it give me a broken image

Why does it give me a broken image? How do I fix it?


I also tried this:

<div style="background:url(btn-border-normal.dds);">test</div>

It just gives me a plain “test”:

Just the word test


Source: css

Leave a Reply