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, 5140👍, 0💬
Popular Posts:
What is the difference between Authentication and authorization? This can be a tricky question. Thes...
What Articles Have You Read about JUnit? There are a number of JUnit articles that you should read: ...
Explain in detail the fundamental of connection pooling? When a connection is opened first time a co...
In C#, what is a weak reference? Generally, when you talk about a reference to an object in .NET (an...
What is the difference between "printf(...)" and "sprintf(...)"? sprintf(...) writes data to the cha...