#app .card button:hover
One ID, two class-level parts, and one type selector gives 1-2-1.
Masukkan selector CSS untuk menghitung skor spesifisitas (Inline, ID, Class/Atribut/Pseudo-class, Elemen/Pseudo-elemen) dan bandingkan selector mana yang menang.
A menang
Isi nilai yang diperlukan, tempel teks Anda, atau unggah file yang ingin diproses.
Sebagian besar alat diperbarui secara langsung saat Anda mengetik; beberapa menggunakan satu tombol tindakan.
Salin, unduh, atau bagikan hasil yang dihasilkan — Anda selalu memiliki kendali penuh atas data Anda.
Enter one or two CSS selectors to see their specificity, shown as ids-classes-types, and which one would win a conflict.
IDs count the most, then classes, attribute selectors, and pseudo-classes, then element type selectors and pseudo-elements. Combinators like space, >, and ~ don't affect specificity.
`#main .container p` scores 1 id, 1 class, 1 type (1-1-1), while `nav ul li.active a` scores 0 ids, 1 class, 4 types (0-1-4) — the first selector wins despite matching fewer elements by name.
IDs - classes/attributes/pseudo-classes - types/pseudo-elementsOne ID, two class-level parts, and one type selector gives 1-2-1.
All calculation runs in your browser; the selectors you enter are never sent anywhere.
When specificity ties, the rule that appears later in the stylesheet (or has higher CSS layer priority) wins.
No — inline `style` attributes always outrank any selector-based specificity, regardless of what this calculator shows.
No — only which kinds of selectors appear and how many of each, not the order they're written in.
No. This implementation counts each as one pseudo-class, except :where(), which contributes zero. The full CSS spec looks inside those arguments.
Uji rasio kontras warna teks dan latar belakang sesuai standar WCAG.
Hitung dimensi proporsional lebar dan tinggi untuk foto, video, dan layar.
Hasilkan aturan tipografi dan spasi CSS clamp() yang responsif dan fluid secara visual.
Ubah kode SVG menjadi Data URI base64 atau URL-encoded untuk CSS.
Ekstrak warna dominan dan buat palet warna harmonis dari foto.
Kecilkan ukuran file SVG dengan menghapus metadata dan kode tidak perlu.
Buat skala ukuran font proporsional berdasarkan rasio musik dan desain.
Simulasikan tampilan warna dan gambar untuk berbagai jenis defisiensi penglihatan.
Hitung densitas piksel PPI layar berdasarkan resolusi dan ukuran diagonal.
Buat tanda tangan email HTML profesional dengan foto, jabatan, dan logo.