Bootstrap pre tag styling

BootstrapWeb DevelopmentCSS Framework

If the code needs to be displayed as a standalone block element or if it has multiple lines, then you should use the <pre> tag.

You can try to run the following code to implement the pre tag for code −


Live Demo

<!DOCTYPE html>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
         <h1>Heading One</h1>
         <h2>Heading Two</h2>
Updated on 12-Jun-2020 12:23:00