Pre tag use
I've seen the <pre> tag used several times in code, I think to improve security (rings a bell with another post) and I was wondering what advantage this could give?
(I know the pre tag just preserves whitespace so please don't tell me that.)
[266 byte] By [
Nibinaear] at [2007-11-20 3:45:50]

# 1 Re: Pre tag use
The <PRE> tag is mainly used to align Form Fields, there is another (better) way aligning Form Fields and it is the <TABLE> tag.
The <Pre> tag means Preformatted text. And if youy were to use the <PRE> tag, you can space your form fields or whatever with the use of the TAB button
# 2 Re: Pre tag use
There is no security involved at all with <pre> nor would it aid in security. The <pre> tag shows plain text to look like html using the default text.
For example, if I type the following. It will appear on one line. <pre> just formats it to look like the <br> and are there.
<html><body>
Hello.
How are you?
What is your name?</body></html>
# 4 Re: Pre tag use
OK, well this is the Scripting Client Side Forum,
The PHP Forum is here :
http://www.dev-archive.com/forum/forumdisplay.php?f=70
# 5 Re: Pre tag use
I know that, and I told you not to tell me that! It was in php actually, but I can't find the example.
And I answered your question as well.
# 6 Re: Pre tag use
OK, well this is the Scripting Client Side Forum,
The PHP Forum is here :
http://www.dev-archive.com/forum/forumdisplay.php?f=70
I put it in the scripting php forum, it was moved, but not by me obviously.