[HTML] [attributo] width

width (attributo base HTML) stabilisce la larghezza dell’elemento HTML, indipendentemente dal suo contenuto. In mancanza, la larghezza dell’elemento si adatta al suo contenuto.

tag

valore

<canvas>

width = "[pixel]" (ad es., "100px").
width = "[percentuale]" (ad es., "50%")

<embed>

Come sopra.

<iframe>

Come sopra.

<img>

Come sopra.

<input>

Come sopra.

<object>

Come sopra.

<svg>

Come sopra.

<video>

Come sopra.

Esempio

<img src="http://goo.gl/0bRYKb" width="50">

attributi base html, html

Related Articles

0 Comment

Rispondi