Tools, FAQ, Tutorials:
Tab Characters in HTML 'pre' Element
Are Tab Characters Preserved in a "pre" Element?
✍: 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:
Â
⇒HTML Body Tag and Block Level Tags
⇒⇒HTML Tutorials
2017-02-20, 945👍, 0💬
Popular Posts:
How to write a policy to set and get custom variables? Here is a policy that sets and gets custom va...
How To Submit Values without Using a Form in PHP? If you know the values you want to submit, you can...
How To Use an Array as a Queue in PHP? A queue is a simple data structure that manages data elements...
What is Azure API Management Publisher Dashboard? Azure API Management Publisher Dashboard is an Azu...
How To Move Uploaded Files To Permanent Directory in PHP? PHP stores uploaded files in a temporary d...