Bootstrap Code

Bootstrap Code allows you to show html css and other language codes with three different key ways:

  • The first option is the <code> tag. If you are going to be displaying code inline, you should use the <code> tag.

    Let us see an example below:

  • Second option is the <pre> tag. 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.
  • Let us see an example below:

  • Third option is user <kbd> input Use the <kbd> to indicate input that is typically entered via keyboard.
  • Let us see an example below:


    Ensure that when you use both the <pre> and <code> tags, you use the unicode variants for the opening and closing tags: &lt; and &gt;.

Leave a Reply

Your email address will not be published. Required fields are marked *