Bootstrap shield lock fill icon

In this, we learn how to show shield lock fill icon in bootstrap, How do i increase its size and change color.

Use this icon with a tag.

Use this icon with input tag.

Use this icon with button tag.

Use this icon as svg.

shield lock fill
<i class="bi-shield-lock-fill"></i>

shield lock fill

increase icon size using inline css

change icon color using inline css

use icon with html button tag

Full Code
<!Doctype html>
	<title>Bootstrap shield lock fill icon</title>
	<link rel="stylesheet" href="">
	<h1 align="center">Bootstrap shield lock fill icon</h1>

	<p>increase icon size using inline css</p>
		<i class="bi-shield-lock-fill"></i>
		<i class="bi-shield-lock-fill" style="font-size:20px"></i>
		<i class="bi-shield-lock-fill" style="font-size:30px"></i>
		<i class="bi-shield-lock-fill" style="font-size:40px"></i>
		<i class="bi-shield-lock-fill" style="font-size:50px"></i>

	<p>change icon color using inline css</p>
		<i class="bi-shield-lock-fill"></i>
		<i class="bi-shield-lock-fill" style="color:red"></i>
		<i class="bi-shield-lock-fill" style="color:blue"></i>
		<i class="bi-shield-lock-fill" style="color:green"></i>

	<p>use icon with html button tag</p>
		<button style="padding: 5px">
			<i class="bi-shield-lock-fill"></i> button
Icon With Anchor Tag

With Anchor Tag

<h1 align="center">with anchor tag</h1>
<a href="javascript:void(0);">
	<i class="bi-shield-lock-fill" style="font-size:16px"></i> Link
Icon With Input Tag

With Input Tag

Use this with bootstrap css.

<h1 align="center">with Input tag</h1>
<div class="input-group w-50">
	<span class="input-group-text">
		<i class="bi-shield-lock-fill"></i>
	<input type="text" class="form-control" placeholder="Input group example" aria-label="Input group example">
Icon With Button Tag

With Button Tag

<h1 align="center">with button tag</h1>
<button style="padding: 5px">
	<i class="bi-shield-lock-fill"></i> Button
Icon Html svg code

Icon Svg code

<h1 align="center">Icon Svg code</h1>
<svg xmlns="" width="16" height="16" fill="currentColor" class="bi bi-shield-lock-fill" viewBox="0 0 16 16">
  <path fill-rule="evenodd" d="M8 0c-.69 0-1.843.265-2.928.56-1.11.3-2.229.655-2.887.87a1.54 1.54 0 0 0-1.044 1.262c-.596 4.477.787 7.795 2.465 9.99a11.777 11.777 0 0 0 2.517 2.453c.386.273.744.482 1.048.625.28.132.581.24.829.24s.548-.108.829-.24a7.159 7.159 0 0 0 1.048-.625 11.775 11.775 0 0 0 2.517-2.453c1.678-2.195 3.061-5.513 2.465-9.99a1.541 1.541 0 0 0-1.044-1.263 62.467 62.467 0 0 0-2.887-.87C9.843.266 8.69 0 8 0zm0 5a1.5 1.5 0 0 1 .5 2.915l.385 1.99a.5.5 0 0 1-.491.595h-.788a.5.5 0 0 1-.49-.595l.384-1.99A1.5 1.5 0 0 1 8 5z"/>

Note :- You can use Bootstrap icons with i and span tag.

Note:- Use this icon with or without Bootstrap.

Download the svg of this icon and add in your document.

More icons

Google login
SignUp with Email