Naar inhoud springen

HTML/Overzicht attributen/hspace

Uit Wikibooks

HTML

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

Functie

Met dit attribuut kun je bij de elementen applet, img en object witruimte bepalen aan de linker- en rechterkant. Dit is de tegenhanger van vspace. Dit attribuut is verouderd: gebruik liever het attribuut style of CSS.

Waarde

Pixels die aangeven hoeveel witruimte je wilt.

Voorbeeld

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

<img src="Bron van de afbeelding" alt="Een afbeelding" hspace="10px">

Wordt gebruikt bij

applet, img, object

Meer informatie

  • w3 (Engels)


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

Informatie afkomstig van https://nl.wikibooks.org Wikibooks NL.
Wikibooks NL is onderdeel van de wikimediafoundation.