Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Are Tab Characters Preserved in a PRE Element
Are Tab Characters Preserved in a PRE Element? - XHTML 1.0 Tutorials - Body Tag and Block Level Tags
✍: FYIcenter.com
Yes. Tab characters are preserved in pre elements like other white space characters. Below is a good tutorial example of using "pre" elements:
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Tab Characters in PRE Elements</title> </head> <body> <pre> XHTML Extensible Hyper-Text Markup Language HTML Hyper-Text Markup Language XML Extensible Markup Language </pre> </body> </html>
If you save the above document as tab.html, and view it with
Internet Explorer, you will see that tab characters are well preserved
by the browser. Line feed characters are also preserved as shown below:

2007-05-12, 5142👍, 0💬
Popular Posts:
How can I show HTML examples without them being interpreted as part of my document? Within the HTML ...
From performance point of view how do they rate ? Repeater is fastest followed by Datalist and final...
Can you explain the fundamentals of “GetGlobalResourceObject ”and “GetLocalResourceObject” function...
How To Download and install PSP Evaluation? - PSP Tutorials - Fading Images to Background Colors wit...
How do we generate strong names ? or What is use the of SN.EXE ? or How do we apply strong names to ...