What is that HTML tag for showing text content as it actually appears in the html file?

xarzu's picture

They have: 25 posts

Joined: May 2007

What is that HTML tag for showing text content as it actually appears in the html file? If you use it, you do not have to worry about because it does a line break exactly as it appears.

Yes, I have tried googling this.
No, I have not found the answer.
Yes, I know it is easy.

greg's picture

He has: 1,581 posts

Joined: Nov 2005

You mean the <pre></pre> tag?

He has: 629 posts

Joined: May 2007

I'll up greg's ante and make that <pre>(code) ... (/code)</pre> Wink
Don't forget to change all less-than, greater-than, and ampersands to their HTML entity equivalents ("&lt;", "&gt;", and "&amp;" respectively.)

P.S. Okay. I give up on getting my example working on this forum post... Those parens around the CODE tag are supposed to be < and > signs!

Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;

greg's picture

He has: 1,581 posts

Joined: Nov 2005

<pre><code>You mean like this?</code></pre>

I believe my 4 Aces beats your full house Wink

(and if someone comes along with a straight flush I'm stacking Laughing out loud)

He has: 629 posts

Joined: May 2007

Hmm. Looks like you doubled down. (viewing source - 2 CODE elements?)

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.