Loading…

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

<code> the tag is used for displaying the code inline and <pre> the tag is used if the system has to be presented as a standalone block element or if the law has multiple lines. While using the <pre> and <code> tags,unicode variants for the opening and closing tags − < and > should be used.

Example

                                        

<code><header></code> wrapped as an inline element.

To display the code as a standalone block element use <pre> tag as:

<pre> <article> <h1>The Article Heading</h1> </article> </pre>

Suggest An Answer

No suggestions avaliable!

Latest post from Bootstrap Interview Questions

Ask Question