byteventures
07-10-2006, 09:05 PM
I just recently tried to publish html as text on one of my web pages, and it continues to show the image rather than the code.
This is the code I am using:
<img src="http://www.url.com/url.jpg" >
Am I missing something?
ricocheting
07-10-2006, 09:55 PM
that code is correct and should show as text, not an image. what editor are you using? it's possible the editor or something thinks it's "smarter" than you and turns it into the image
stdunbar
07-10-2006, 10:45 PM
I'm totally missing your question. Are you publishing your HTML as a JPG? If it is really HTML why the heck are you saying it is a JPG? That makes no sense.
In HTML an image is, well, an image. It is not HTML. You can convince your web server to tell the browser that it is HTML but the browser will likely not accept the Content-Type of HTML for a JPG image.
I say fix your code.
Albert_chu
07-10-2006, 11:37 PM
i think he wants to show the jpg source code as text rather than a html code...but then again..why would you want to do that?
lihitlab
07-11-2006, 12:06 AM
The syntax is correct, please use notepad to verify your editor save the content exactly what you wants.
Besides, you could try another browser too ...
byteventures
07-11-2006, 11:01 AM
I'm totally missing your question. Are you publishing your HTML as a JPG? If it is really HTML why the heck are you saying it is a JPG? That makes no sense.
In HTML an image is, well, an image. It is not HTML. You can convince your web server to tell the browser that it is HTML but the browser will likely not accept the Content-Type of HTML for a JPG image.
I say fix your code.
It says in my post that I am trying to post an HTML code as text onto my webpage so that the code is visible to my visitors.
I am actually trying to post this in my group on MySpace to help with posting images, backgrounds, etc. For some reason MySpace does not want me to post any code, or feels like it is necessary to conver the text back into HTML.
Has anyone had this problem? Thanks for the help.
Make it in a better way ;)
<input type="text" value='<img src="http://www.url.com/url.jpg">'>
wish this help
Regards