1.

When we can use tag and ?

Answer»

<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> 4. What are the DIFFERENT button styles in Bootstrap? Explain

Bootstrap has many PREDEFINED button styles, and each button reflects EITHER a message to the user or an action to be performed.

 

The different button styles are:-

  • Primary
  • Success
  • Danger
  • Warning
  • Info

 

Classes for buttons are as follows:-

  • .btn-default
  • .btn-primary
  • .btn-success
  • .btn-info
  • .btn-warning
  • .btn-danger


Discussion

No Comment Found