< HTML < Overzicht attributen

HTML

Inhoudsopgave
  1. Verklarende woordenlijst
  2. Overzicht tags
  3. Overzicht attributen
  4. Andere cursussen

Functie

Dit attribuut zorgt ervoor dat je de kleur van tekst kunt bepalen. Dit attribuut is echter verouderd in HTML 4.01 en wordt helemaal niet meer ondersteund in XHTML net zoals de elementen die het bevatten. Dus het wordt afgeraden om dit attribuut nog te gebruiken. Gebruik in de plaats hiervan liever het attribuut style of stijlbladen zoals CSS om de kleur aan te passen. Voor meer informatie zie hoofdstuk opmaak.

Waarde

Voorbeeld

HTML-code: Een voorbeeld van het gebruik van het color attribuut

<font color="red">
Rode tekst!
</font>

Wordt gebruikt bij

basefont, font

Meer informatie


HTML attributen

abbr | accept | accept-charset | accesskey | action | align | alt | archive | axis | background | bgcolor | border | cellpadding | cellspacing | char | charoff | charset | checked | cite | class | classid | clear | code | codebase | codetype | color | cols | colspan | compact | content | coords | data | datetime | declare | defer | dir | disabled | enctype | face | for | href | id | lang | style | title | width

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.