Specificity Test

Size
1,642 Kb
Views
8,096

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 Previews

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 */ 
Specificity Test - Script Codes
Specificity Test - Script Codes
Home Page Home
Developer Elyse Holladay
Username elyseholladay
Uploaded December 27, 2022
Rating 3
Size 1,642 Kb
Views 8,096
Do you need developer help for Specificity Test?

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!

Elyse Holladay (elyseholladay) Script Codes
Create amazing sales emails with AI!

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!