Bootstrap code

May 04, 2021 06:00 Bootstrap

Table of contents

Bootstrap code

Bootstrap allows you to display code in two ways:

  • The first is the label. If you want to display the code inline, you should use the hashtag.
  • The second is the label. If the code needs to be displayed as a separate block element or if the code has multiple lines, you should use the label.

Make sure that when you use the and the labels, the start and end labels use the unicode variants: and the unicode variants.

Let's take a look at the following example:

<! DOCTYPE html>
Examples of Bootstrap - Code
<link href="//" rel="external nofollow" target="_blank" rel="stylesheet">
<script src="//" rel="external nofollow" ></script>
<script src="//" rel="external nofollow" ></script>

<p><code>&lt; h eader&gt; I t is surrounded as an inline element. </p>
If you need to display the code as a separate block element, use the hashtag:
&lt; article&gt;
&lt; h 1&gt; Article Heading&lt;/h1&gt;

Try it out . . .

The example shows the following image:

Bootstrap code