Hi
I have been looking at the box model at http://www.glish.com/css/7.asp
in his source code he has a tag <pre> what is this?
| SitePoint Sponsor |



Hi
I have been looking at the box model at http://www.glish.com/css/7.asp
in his source code he has a tag <pre> what is this?





Preformatted text.![]()
Which means it will render it as you type it, very much like (in fact I believe identically to) the [code ] function on this site.
It defaults to a weird monospaced font if I recall correctly.
Where in usual html, anything other than one space is ignored by the browser, anything between the <pre></pre> tags is taken into account.
To illustrate, I am going to type the same thing twice.
I like onions!
Now in spite of the fact I just added ten spaces to the above, it looks normal. However, whack exactly the same thing in <pre></pre> tags:
And magically it pays attention to my whitespace.Code:I like onions!
...that's it really
Edit:
For the record, I don't really like onions.....unless they're incinerated in a fry up...
~The Artist Latterly Known as Crazy Hamster~
922ee590a26bd62eb9b33cf2877a00df
Currently delving into Django, GIT & CentOS



me too!..thanks
Bookmarks