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, 1405🔥, 0💬
Popular Posts:
How to detect errors occurred in the json_decode() call? You can use the following two functions to ...
How to include additional claims in Azure AD v2.0 id_tokens? If you want to include additional claim...
How to read RSS validation errors at w3.org? If your RSS feed has errors, the RSS validator at w3.or...
How to run PowerShell Commands in Dockerfile to change Windows Docker images? When building a new Wi...
How to install .NET Framework in Visual Studio Community 2017? I have the Visual Studio Installer in...