Set warning action with orange outlined Bootstrap 4 Button

Set orange outline for a Bootstrap 4 button, using the btn-outline-warning class and indicate warning action.

The following includes the orange outline on a button −

<button type="button" class="btn btn-outline-warning">

The class is added just as any other class added to any element in Bootstrap.  For a Bootstrap button, I used the <button> element.

You can try to run the following code to implement the btn-outline-warning class −


Live Demo

<!DOCTYPE html>
<html lang="en">
    <title>Bootstrap Example</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="">
    <script src=""></script>
    <script src=""></script>
<h3>College Placements</h3>
<ul class = "list-group">
  <li class = "list-group-item">Selected Students</li>
  <li class = "list-group-item">Rejected Students</li>
  <li class = "list-group-item">Result Awaited</li>
<p>List of selected and rejected students:</p>
<button type="button" class="btn btn-outline-success">Selected</button>
<button type="button" class="btn btn-outline-warning">Rejected</button>