What are the two ways you can display the code in bootstrap?



What are the two ways you can display the code in bootstrap?..

Answer / Saujanya Yadav

"Code blocks can be displayed in Bootstrap using <pre> and <code> tags or by utilizing the <syntaxhighlight> class. For example:<br>n<pre><code>// Example of inline codenlet x = 5;</code></pre>nOr:n<div class="syntaxhighlight">n<code class="bash">n// Example of syntax highlighting using the <syntaxhighlight> classnnpm install expressn</code>n</div>"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Bootstrap Interview Questions

it is possible to disable zooming on mobile device while using bootstrap?

1 Answers  


What is difference between fluid layout and responsive layout?

1 Answers  


When to use bootstrap?

1 Answers  


Explain the basic grid structure in bootstrap?

1 Answers  


What are the steps to create a progress bar using bootstrap?

1 Answers  


Why would you use bootstrap?

1 Answers  


Tell me what is column ordering and how it works?

1 Answers  


What is img responsive?

1 Answers  


What are bootstrap panels?

1 Answers  


What is navbar in bootstrap? and why it is used?

1 Answers  


What is the current major version of bootstrap?

1 Answers  


when we can use <code>tag and <pre>?

1 Answers  


Categories