Note: The examples will act same with the bootstrap.
Example 1:
The approach of the pre tag is basically used if you want to write the code and print it as a normal text.
<!DOCTYPE html> <html> <head> <title>Pre tag usage</title> </head> <body> <!-- Notice the spces inside of the pre tag --> <pre>BAJARANGI SOFT</pre> <pre> A Computer Portal For web designers </pre> </body> </html>
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <div class="row"> <div class="col-md-3"> <pre> <p><b>BAJARANGI SOFT</b> This paragraph is on remove margin introduced in pre tag in bootstrap 4</p> </pre> </div> </div> </body> </html>