HTML handleiding

HTML TUIS HTML Inleiding HTML-redakteurs HTML Basies HTML elemente HTML-kenmerke HTML-opskrifte HTML paragrawe HTML-style HTML-formatering HTML-aanhalings HTML-kommentaar HTML kleure HTML CSS HTML skakels HTML beelde HTML Favicon HTML-tabelle HTML-lyste HTML-blok en inlyn HTML-klasse HTML ID HTML iframes HTML JavaScript HTML-lêerpaaie HTML kop HTML-uitleg HTML reageer HTML Rekenaarkode HTML semantiek HTML-stylgids HTML-entiteite HTML Simbole HTML Emoji's HTML-tekenset HTML URL enkodeer HTML vs. XHTML

HTML -vorms

HTML-vorms HTML-vorm eienskappe HTML-vormelemente HTML-invoertipes HTML-invoerkenmerke HTML-invoervorm-kenmerke

HTML -grafika

HTML-doek HTML SVG

HTML Media

HTML Media HTML video HTML oudio HTML-inproppe HTML YouTube

HTML API's

HTML geoligging HTML Sleep/Drop HTML-webberging HTML Web Werkers HTML SSE

HTML voorbeelde

HTML voorbeelde HTML vasvra HTML-oefeninge HTML-sertifikaat HTML Opsomming HTML-toeganklikheid

HTML- verwysings

HTML-merkerlys HTML-kenmerke HTML globale kenmerke HTML-blaaierondersteuning HTML-gebeurtenisse HTML kleure HTML-doek HTML oudio/video HTML Doktipes HTML-karakterstelle HTML URL enkodeer HTML-langkodes HTTP-boodskappe HTTP metodes PX na EM-omskakelaar Sleutelbord kortpaaie

HTML -skakels - Verskillende kleure


'n HTML-skakel word in 'n ander kleur vertoon, afhangende van of dit besoek is, onbesoek is of aktief is.


HTML skakel kleure

By verstek sal 'n skakel soos volg verskyn (in alle blaaiers):

  • 'n Onbesoekte skakel is onderstreep en blou
  • 'n Besoekte skakel is onderstreep en pers
  • 'n Aktiewe skakel is onderstreep en rooi

U kan die skakelstatuskleure verander deur CSS te gebruik:

Voorbeeld

Hier sal 'n onbesoekte skakel groen wees sonder onderstreep. 'n Besoekte skakel sal pienk wees sonder onderstreep. 'n Aktiewe skakel sal geel en onderstreep wees. Boonop sal dit rooi en onderstreep word wanneer u oor 'n skakel (a: hover) beweeg:

<style>
a:link {
  color: green;
  background-color: transparent;
  text-decoration: none;
}

a:visited {
  color: pink;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: red;
  background-color: transparent;
  text-decoration: underline;
}

a:active {
  color: yellow;
  background-color: transparent;
  text-decoration: underline;
}
</style>

Skakel knoppies

'n Skakel kan ook as 'n knoppie gestileer word deur CSS te gebruik:

Hierdie is 'n skakel

Voorbeeld

<style>
a:link, a:visited {
  background-color: #f44336;
  color: white;
  padding: 15px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

a:hover, a:active {
  background-color: red;
}
</style>

Gaan na ons CSS-tutoriaal om meer oor CSS te wete te kom .


HTML-skakelmerkers

Tag Description
<a>Defines a hyperlink

Vir 'n volledige lys van alle beskikbare HTML-merkers, besoek ons HTML-merkerverwysing .