how to code html document

Cromewell

Administrator
Staff member
I cannot make sense of the question.

You have an image that shows html code and you want to produce the page? Retype it out, or try using ocr software. Might be able to get the text out.

Or you are trying to display the image with html? In which case you basically have it. Other than needing to close the tag. <img src="/path/to/image.jpg">
 

1Tsme1941

Member
Ok, the image shows Type Firefox Html Document. I click on it and the image is displayed.
Now I want to show the image in my html code. I have pasted it into the folder I'm coding in.
<img src="image01.jpg" height=200 width=175 alt="image"> won't work because it isn't .jpg.
My question is "how do I show the image?
 

Cromewell

Administrator
Staff member
Just change the .jpg to .gif or .png or whatever it is to match the name of the file. The browser does not care what the 'extension' is, it is going to check the first few bytes of the file to decide what format it is and how to display it.

Something seems off. Can I see a screenshot of the file in the directory?
 

1Tsme1941

Member
The image shows "Type Firefox Html Document". I took the screenshot but at it's smallest(I can greatly enlarge it)
it's too large to attach.
 

Cromewell

Administrator
Staff member
Webp and webpage complete are different. Chances are the filename will tell you. If it ends in webp vs one of html, mhtml, htm.

In the case of it actually being a webp, as I mentioned before, just make the src="image01.webp" or whatever the actual name is, make sure you are including the webp extension. If you are fiddling with this locally, the fully qualified path may be needed. I believe most browsers support it at this point.

If it is one of the html types, jamming it into an img tag will not work, you need to find the actual image and save that.
 
Top