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:
⇒ Images in HTML 'pre' Elements
2023-08-03, ∼2235🔥, 0💬
Popular Posts:
How to use the "set-variable" Policy Statement to create custom variables for an Azure API service o...
What Is Azure API Management Service? Azure API Management as a turnkey solution for publishing APIs...
How to use urllib.parse.urlencode() function to encode HTTP POST data? My form data has special char...
How to access Query String parameters from "context.Request.Url.Que ry"object in Azure API Policy? Q...
How To Read the Entire File into a Single String in PHP? If you have a file, and you want to read th...