Bootstrap code tag styling


Using Bootstrap, you can easily display code with <code> and <pre> tag.

The <code> tag displays code wrapped as an inline element.

To display code with the <code> tag, you can try to run the following code −

Example

<p>
   <code>&lt;header&gt;</code> is wrapped as an inline element.
</p>

Updated on: 12-Jun-2020

169 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements