Specificity Test
How do I make an specificity test?
What is a specificity test? How do you make a specificity test? This script and codes were developed by Elyse Holladay on 27 December 2022, Tuesday.
Specificity Test - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Specificity Test</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="wrap"> <p id="test">p#test</p> <div class="item"> <p>.item p</p> </div> <p>p</p> <div id="id"> <p>#id p</p> </div>
</div>
</body>
</html>
Specificity Test - Script Codes CSS Codes
/* #wrap p { background: purple; } */ /* specificity: 100 (id) + 1 (selector) = 101, but it takes precedence over the others because #wrap is the parent */
/* #test { background: red; } */ /* specificity : 100 (for an ID) */
p { background: orange; padding: 10px; font-size: 25px; } /* specificity : 1 (for a selector) */
/* #id p { background: yellow; } */ /* specificity : 100 (id) + 1 (selector) = 101. this now overrides #wrap p, because it's later and has equal specificity */
/* .item p { background: green; } */ /* specificity : 10 (class) + 1 (selector) = 11 */
Developer | Elyse Holladay |
Username | elyseholladay |
Uploaded | December 27, 2022 |
Rating | 3 |
Size | 1,642 Kb |
Views | 8,096 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Start a new Grid Example | 1,647 Kb |
A Pen by elyse holladay | 1,904 Kb |
Tiny drag and drop CSS icon | 2,723 Kb |
Notification banners | 6,308 Kb |
X Floating Examples | 2,046 Kb |
Basic Fluid Grid Example | 2,462 Kb |
Style color palettes with cssgrid | 3,924 Kb |
Scalable Responsive Type Stack | 2,744 Kb |
4 Basic Naming with Classes | 1,650 Kb |
D360 Filter Prototype - Old Style | 6,674 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Funny menu | AxeLVaisper | 4,671 Kb |
Spiralator 9000 | AdmiralPotato | 4,671 Kb |
Scroll using CSS | Casperovic | 2,159 Kb |
JQuery Validate checkbox group | Lunaman | 2,466 Kb |
Simple Flat Menu | Jeplaa | 2,467 Kb |
Ghost Buttons with CSS3 | Mithicher | 2,509 Kb |
Twitch.tv API | Ryzokuken | 2,618 Kb |
Basecamp 3 Document | Lachlanjc | 3,811 Kb |
Firefox Breakout Guide | Quincysoeliman | 2,576 Kb |
Google Maps API Ground Overlay | Boycetrus | 2,961 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!