Il tag HTML <marquee>



Descrizione

Il tag HTML <marquee> viene usato per scorrere sia in orizzontale che in verticale (in base a come viene impostato) lungo una pagina web un testo o un immagine.

Esempio

<!DOCTYPE html>
<html>
<head>
<title>HTML marquee Tag</title>
</head>
<body>
<marquee>This is basic example of marquee</marquee>
<marquee direction="up">The direction of text will be from bottom to top.</marquee>
</body>
</html>

Produrrà il seguente risultato:

This is basic example of marquee The direction of text will be from bottom to top.

Attributi Globali

Questo tag supporta tutti gli attributi globali descritti in - HTML - Referenze Attributi

Attributi Specifici

The HTML <marquee> supporta anche i seguenti attributi aggiuntivi:

AttributoValoreDescrizione
behavior scroll
slide
alternate
Indica il tipo di scrolling.
bgcolor rgb(x,x,x)
#xxxxxx
colorname
Deprecato-Definisce un colore di background.
direction up
down
left
right
Definisce la direzione in cui dovrà scorrere il testo.
height pixels o %Specifica l' altezza del marquee.
hspace pixelsDefinisce lo spazio orizzontale intorno al marquee.
loop numericoIndica per quanto tempo dovrà scorrere il testo. Il valore di default è INFINITE, ossia che scorrerà all' infinito.
scrolldelay secondiDefinisce quanto tempo deve passare fra uno scrolling e l' altro.
scrollamount numericoIndica la velocità dello scorrimento.
width pixels o %Definisce la larghezza del marquee.
vspace pixelsDefinisce lo spazio verticale intorno al marquee.

Attributi Evento

Questo tag supporta tutti gli attributi evento descritti in - HTML - Referenze Eventi

Compatibilità Browser

ChromeFirefoxIEOperaSafariAndroid
SiSiSiSiSi?
html_tags_reference.htm
Advertisements