Welcome to WebmasterWorld Guest from 126.96.36.199 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
How to show html code on a web page need to show an example of code Deep_Woods
I have cms set up on a website for the owner to post images and text. I am building a help page to show him how to insert images via html. I need to show an example of the actual code of an image. How can I do this?
Just wrap whatever HTML code u want him to read inside a <pre> tag (it can be any tag you want) that way he will see it as regular readable text and the browser won't process that code. Deep_Woods
It will work like that but it won't let me add the < and > to the html code...when I add the brackets it shows an image placemat.
to insert a "<" you will have to type in: <
and for ">" type
> in YOUR html code
that should do the trick, the ampersand and the semi-colon are both required
You can replace the "<" and ">" with the ASCII code for those characters.
So, it would look like this:
<img src="image.jpg" width="20" height="20" border="0" alt=""> </pre>
and would look like this when viewed in a browser:
<img src="image.jpg" width="20" height="20" border="0" alt=""> Deep_Woods
Thanks folks...great job! I knew there was a way to do that but I could not for the life of me remember what it was. ;)