VOOZH about

URL: https://www.geeksforgeeks.org/bootstrap/bootstrap-5-reboot-code-blocks/

⇱ BootStrap 5 Reboot Code blocks - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

BootStrap 5 Reboot Code blocks

Last Updated : 23 Jul, 2025

Bootstrap 5 Reboot Code blocks are used to put the code inside of <pre> tag, according to official docs we recommend that you avoid using any angle brackets inside of <pre> tags. This is used to remove the default margin of the HTML pre tag element.

BootStrap5 Reboot Code blocks Class: There is no predefined class to do the Reboot Code Blocks. 

BootStrap5 Reboot Code blocks Tags: The HTML code tag has to use with the Bootstrap CDN link, it removes the extra space.

Syntax:

<pre>
 <code> 
 ... 
 </code>
</pre>

The below examples illustrate the BootStrap5 Reboot Code blocks:

Example 1:  In this example, we will put some C code inside the <pre> and <code> tags without the formatting.

Output:

👁 BootStrap 5 Reboot Code blocks
BootStrap 5 Reboot Code blocks

Example 2: In this example, we will put some C code inside of the <pre> & <code> tag with the formatting by putting them in a <pre> tag, and because of the <pre> tag, it removes the color.

Output:

👁 Image
BootStrap 5 Reboot Code blocks

Reference: https://getbootstrap.com/docs/5.1/content/reboot/#code-blocks

Comment
Article Tags:

Explore