Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using <pre> tag

Status
Not open for further replies.

dexeloper

Programmer
Oct 26, 2004
162
GB
Take a look at this:

<html><head></head>
<body topmargin=0>
<pre><br>abc</pre>
</body></html>

What should appear and on which line?

I had thought '<br>abc' on line 1 but I get 'abc' on line 2.
Internet Explorer.
 
Thats because <br> is still a line break. the <pre> tags maintain the formattng of the text as is, but the html constructs are still interpreted. So the line break is still created.
Hence you get abc on the second line.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top