You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

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

xarzu's picture

They have: 12 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.

He has: 1,580 posts

Joined: Nov 2005

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

He has: 581 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;

He has: 1,580 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)

Signature links on this forum are NO-follow! - This means spam is futile!

He has: 581 posts

Joined: May 2007

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