HTML Pre Element:
• The HTML pre element defines preformatted text. The text inside a pre element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks.
• Sometimes, you want your text to follow the exact format of how it is written in the HTML document.
In
these cases, you can use the preformatted tag <pre>.
Example:
function testFunction( strText ){
alert (strText)
}
OUTPUT:
function testFunction( strText ){ alert (strText)
}
Non-Breaking Space:
• A commonly used entity in HTML is the non-breaking space:
• A non-breaking space is a space that will not break into a new line.
Example:
10 pm.
OUTPUT:
10 pm.