Example 1 — Style HTTPS Links
Emphasize anchors whose href starts with https.
<style>
a[href^="https"] {
color: #15803d;
font-weight: 600;
}
</style>
<a href="https://example.com">Secure</a>
<a href="/about">Internal</a> How It Works
- Target
href. Link destinations live in that attribute. - Require the prefix.
^="https"matches only values that start that way. - Style matches. The secure link turns green and bold.
- Skip others. Paths like
/aboutdo not start withhttps.

