Header Ads

Monospaced and Preformattd Text






By using monospaced font in HTML 5 a Web developer can provide the same amount of horizontal space between the fonts, even if the font size, shape, and type are not the same.

Monospaced fonts are used for programming code scripts, instruction texts, and ASCII characters.

The <pre> tag is used to apply preformatted text content to a Web page. The <pre> tag applies a field-font width to the text content. It also maintains a standard formatting for spaces and line breaks. The <pre> tag is usually used to when you want to copy paste
content from a source but do not want to change the formatti of the same. The content would be copied while maintaining all the line breaks and spaces.


No comments:

Powered by Blogger.