Bootstrap 4 .border-danger class

Use the border-danger class to set a red border to an element.

Set the border-danger class to an element as if we include any other class ?

  Red Border

Above, we have also set another class "new", to style the element ?

You can try to run the following code to implement the border-danger class ?

Example


  
    Bootstrap Example
    
    
    
    
    
    
  


 

Rectangle with red border:

 
Red Border
Updated on: 2026-03-11T23:14:18+05:30

332 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements