When will you use <code>tag and <pre>tag?



When will you use <code>tag and <pre>tag?..

Answer / Rohit Singh

The HTML `<code>` tag is used for displaying a short section of computer code, or other inline text that should be treated as code. On the other hand, the `<pre>` (short for preformatted) tag is used when you want to showcase larger blocks of preformatted text or code, while maintaining its original spacing and line breaks. In Bootstrap, both tags can be styled with syntax highlighting using external libraries like PrismJS.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Bootstrap Interview Questions

Which class make a set of buttons appear vertically stacked rather than horizontally?

1 Answers  


What Is Lead Body Copy?

1 Answers  


How will you create a pills navigation menu?

1 Answers  


Tell me what are the steps for creating basic or vertical forms?

1 Answers  


Explain types of lists supported by Bootstrap?

1 Answers  


Do you know who developed the bootstrap?

1 Answers  


What Contextual Classes Are Available To Style The Panels?

1 Answers  


What do you mean by normalize in bootstrap?

1 Answers  


Can we make images responsive in bootstrap?

1 Answers  


Explain what are class loaders in Bootstrap?

1 Answers  


What is bootstrap navbar?

1 Answers  


In Bootstrap what are the two ways you can display the code?

1 Answers  


Categories