⊗mkPmSlLCls 86 of 250 menu

Link with class in CSS

Now let the links themselves have a class:

<a href="#" class="eee">link</a> <a href="#" class="eee">link</a> <a href="#" class="eee">link</a>

Let's set styles for links that have this class:

a:link.eee, a:visited.eee { color: red; } a:hover.eee { text-decoration: none; }

It doesn't matter in what order you write the reference class and state pseudo-classes. You can rearrange them and nothing will change:

a.eee:link, a.eee:visited { color: red; } a.eee:hover { text-decoration: none; }

Explain what the selector in the code below selects. Then write the HTML code that matches that selector. Here's the code with the selector:

a.zzz { color: red; } a.zzz:hover { text-decoration: none; }

Explain what the selector in the code below selects. Then write the HTML code that matches that selector. Here's the code with the selector:

#block a.zzz { color: red; } #block a.zzz:hover { text-decoration: none; }

Explain what the selector in the code below selects. Then write the HTML code that matches that selector. Here's the code with the selector:

.block a.zzz { color: red; } .block a.zzz:hover { text-decoration: none; }
English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline