I am trying to put this code in a scroll box so that users can copy and paste it to other places. I do not know the code for a scroll box that will show the code. Last time I tried making it show up in a scroll box, the active image showed up in the scroll box, not the code for it. Here is the code: An example of what I want can be seen at http://infiniteadds.org/bulletin.php All help will be greatly appreciated.
For some reason I see <pr><pre> and </pr></pre> at the beginning and end of the above code in quote, that is not part of my code. Everything else is.
Hi SyfonicNetworks, The problem is simple. Everything inside the PRE element (which means "pre-formatted text") is being interpreted literally. If you want the code to appear, you need to escape your tags by using < and > for your < and > tag delimiters, respectively (inside the <pre> and </pre> tags of course, not the <pre> and </pre> tags themselves). Furthermore, that block of preformatted text (the PRE element and its containers) is not a related group of sentences that convey a single topic or have a singular meaning, so structurally and semantically speaking the paragraph is not the ideal HTML element to use here. I'd go with a DIV element instead since it's a semantically and structurally neutral block-level element. Hope that helps.