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, ∼2112🔥, 0💬
Popular Posts:
How to reinstall npm with a node version manager? I am getting permission errors with the current ve...
Where can I download the EPUB 2.0 sample book "The Problems of Philosophy" by Lewis Theme? You can f...
How to enter & sign in '@(...)' expressions? & signs can be entered in '@(...)' expr...
Tools, FAQ, Tutorials: JSON Validator JSON-XML Converter XML-JSON Converter JSON FAQ/Tutorials Pytho...
How to create a "Sign-up or Sign-in" user flow policy in my Azure AD B2C directory? If you want to b...