Here is another CSS solution. It takes fewer lines of code.

ul li:before {
  content: '\2713';
  display: inline-block;
  color: red;
  padding: 0 6px 0 0;
}

ul li {
  list-style-type: none;
  font-size: 1em;
}
<ul>
  <li>test1</li>
  <li>test</li>
</ul>

Answer from Kheema Pandey on Stack Overflow
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Web โ€บ CSS โ€บ Reference โ€บ Selectors โ€บ ::checkmark
checkmark - CSS - MDN Web Docs - Mozilla
November 7, 2025 - The ::checkmark CSS pseudo-element targets the checkmark placed inside the currently-selected element of a customizable select element. It can be used to provide a visual indication of which option is selected.
Top answer
1 of 16
110

Here is another CSS solution. It takes fewer lines of code.

ul li:before {
  content: '\2713';
  display: inline-block;
  color: red;
  padding: 0 6px 0 0;
}

ul li {
  list-style-type: none;
  font-size: 1em;
}
<ul>
  <li>test1</li>
  <li>test</li>
</ul>

2 of 16
109

You can draw two rectangles and place them next to each other. And then rotate by 45 degrees. Modify the width/height/top/left parameters for any variation.

DEMO 1

.checkmark {
  display: inline-block;
  width: 22px;
  height: 22px;
  -ms-transform: rotate(45deg); /* IE 9 */
  -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
  transform: rotate(45deg);
}

.checkmark_stem {
  position: absolute;
  width: 3px;
  height: 9px;
  background-color: #ccc;
  left: 11px;
  top: 6px;
}

.checkmark_kick {
  position: absolute;
  width: 3px;
  height: 3px;
  background-color: #ccc;
  left: 8px;
  top: 12px;
}
<span class="checkmark">
  <div class="checkmark_stem"></div>
  <div class="checkmark_kick"></div>
</span>

DEMO 2 (With circle)

.checkmark {
  display: inline-block;
  width: 22px;
  height: 22px;
  -ms-transform: rotate(45deg); /* IE 9 */
  -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
  transform: rotate(45deg);
}

.checkmark_circle {
  position: absolute;
  width: 22px;
  height: 22px;
  background-color: green;
  border-radius: 11px;
  left: 0;
  top: 0;
}

.checkmark_stem {
  position: absolute;
  width: 3px;
  height: 9px;
  background-color: #fff;
  left: 11px;
  top: 6px;
}

.checkmark_kick {
  position: absolute;
  width: 3px;
  height: 3px;
  background-color: #fff;
  left: 8px;
  top: 12px;
}
<span class="checkmark">
  <div class="checkmark_circle"></div>
  <div class="checkmark_stem"></div>
  <div class="checkmark_kick"></div>
</span>

๐ŸŒ
CodePen
codepen.io โ€บ gliesche โ€บ pen โ€บ ZQyPeV
Pure CSS checkmark
If you need things in the <head> of the document, put that code here. ... The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https. โ†‘ Insert the most common viewport meta tag ยท CSS preprocessors help make authoring CSS easier.
๐ŸŒ
Cyber Definitions
cyberdefinitions.com โ€บ symbols โ€บ special-symbols โ€บ Check-Mark.html
'Check-Mark' | Symbol and Codes
The HTML Entity for Check-Mark is โœ“. You can also use the HTML Code (&#10003, CSS Code (2713), Hex Code (&#x2713;), or Unicode (2713) to insert the symbol for Check-Mark.
๐ŸŒ
CSS-Tricks
css-tricks.com โ€บ almanac โ€บ pseudo-selectors โ€บ c โ€บ checkmark
::checkmark | CSS-Tricks
September 30, 2025 - The CSS ::checkmark pseudo-element checks whether an element is selected or not, allowing us to style its state.
๐ŸŒ
UsefulAngle
usefulangle.com โ€บ post โ€บ 236 โ€บ css-checkmark-tick
How to Create a Checkmark / Tick with CSS - UsefulAngle
October 11, 2019 - Also instead of using new inner elements to create lines, we use the container's ::before and ::after pseudo-elements. ... The ::before and ::after pseudo-elements are then rotated by their left-bottom corners to create a tick mark.
Find elsewhere
๐ŸŒ
CodePen
codepen.io โ€บ ukristen โ€บ pen โ€บ KpPNZV
CSS checkmarks
... <p> This is a slightly modified ... order to optimize it for different viewport sizes. </p> <p> Modify the font-size of ul.checkmark li in the CSS window above in order to test it....
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ web templates โ€บ how-to-draw-a-checkmark-tick-using-css
How to draw a checkmark / tick using CSS ? - GeeksforGeeks
December 29, 2023 - <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> body { display: flex; justify-content: center; align-items: center; flex-direction: column; } .check { height: 50px; width: 18px; border-bottom: 10px solid green; border-right: 10px solid green; transform: rotate(45deg); margin: 20px; } </style> </head> <body> <h1 style="color: green;"> GeeksforGeeks </h1> <div class="check"></div> </body> </html>
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ how-to-create-a-checkmark-tick-with-css
How to Create a Checkmark / Tick with CSS
March 12, 2021 - <!DOCTYPE html> <html> <style> div { margin: 2%; position: relative; width: 40px; height: 40px; box-shadow: inset 0 0 12px lightblue; } div::before { content: ""; position: absolute; width: 8px; top: 50%; height: 50%; border-radius: 2px; background-color: rgb(123,45,20); transform: translateX(12px) rotate(-45deg); transform-origin: left bottom; z-index: +1; } div::after { content: ""; position: absolute; bottom: 0; height: 8px; width: 100%; border-radius: 2px; background-color: rgb(200,52,120); transform: translateX(12px) rotate(-45deg); transform-origin: left bottom; } </style> <body> Custom mark!
๐ŸŒ
CodePen
codepen.io โ€บ lajlev โ€บ pen โ€บ DyJygd
CSS Checkmark
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting. ... Visit your global Editor Settings. ... h1 Pure css checkmark br br .checkmark br br br br small Based on http://webitect.net/design/webdesign/creating-fancy-bullet-points-with-pure-css3/
๐ŸŒ
SitePoint
sitepoint.com โ€บ html & css
Replacement content with the checkmark - HTML & CSS - SitePoint Forums | Web Development & Design Community
June 26, 2020 - I try to make styling for a circle when it is status CHECKED. How to add also checkmark in this case? As I understand it should be replaced :before with the new content: font-family: FontAwesome; content: "\f09โ€ฆ
๐ŸŒ
CodePen
codepen.io โ€บ gregbarozzi โ€บ pen โ€บ gMLdwy
Unicode / CSS Checkmark and X
Note: your code becomes un-folded during formatting. ... Visit your global Editor Settings. ... <h3>Unicode / CSS check-mark and X</h3> <p class=check>&#x2714;</p> <p class=ex>&#215;</p> <table style="border: 1px;"> <tr> <th colspan="2">one</th> <th>two</th> <th> three</th> </tr> <tbody> <tr> <td>1</td> <td>2</td> <td>3</td> <td>4</td> </tr> </tbody> </table>
๐ŸŒ
Bbbootstrap
bbbootstrap.com โ€บ home โ€บ snippets โ€บ pure css animated check mark inside circle
Pure CSS animated check mark inside circle Example
This snippet is free and open source hence you can use it in your project.Pure CSS animated check mark inside circle snippet example is best for all kind of projects.A great starter for your new awesome project with 1000+ Font Awesome Icons, 4000+ Material Design Icons and Material Design Colors at BBBootstrap.com.
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ checkmark-symbol-html-for-checkmark-unicode
Checkmark Symbol โ€“ HTML for Checkmark Unicode
April 12, 2022 - If you decide to use this Unicode to show a checkmark in HTML and you type it in like that, what you type is shown like this: <h1>Languages of the web</h1> <h3>U+2713 HTML</h3> <h3>U+2713 CSS</h3> <h3>U+2713 JavaScript</h3> <h3>U+2713 PHP</h3>
๐ŸŒ
W3Schools
w3schools.com โ€บ charsets โ€บ ref_utf_dingbats.asp
HTML Unicode Dingbats
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.
๐ŸŒ
HTML Symbols
htmlsymbols.xyz โ€บ unicode โ€บ U+2713
โœ“ - Check mark (U+2713) - HTML Symbols
Detailed information about the Unicode character 'Check mark' with code point U+2713 that can be used as a symbol or icon on your site.
๐ŸŒ
Bbbootstrap
bbbootstrap.com โ€บ home โ€บ snippets โ€บ pure css animated check mark
Pure CSS animated check mark Example
Pure CSS animated check mark snippet for your project ๐Ÿ“Œ๐Ÿ“Œ. this snippet is created using HTML, CSS, Pure CSS, Javascript