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 OverflowMDN 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.
Videos
07:29
How To Make Custom Checkbox Using HTML And CSS | Animated Check ...
01:19
Make Checkboxes GLOW and ANIMATE in css only - YouTube
10:17
Create EDITABLE circular checkmark bulleted list in Elementor and ...
01:00
Check Mark | HTML CSS - YouTube
06:21
How to Add a Verified Tick mark in Footer copyright section | Blogger ...
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>
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.
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/
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>✔</p> <p class=ex>×</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.
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.
RapidTables
rapidtables.com โบ web โบ html โบ html-codes โบ htm-code-check.html
HTML code for Check Mark (โ)
HTML code for check mark (โ).