Il tag HTML <hr>



Descrizione

Il tag HTML <hr> viene utilizzato per creare una linea orizzontale. Viene anche chiamato 'Horizontal Rule'.

Esempio

<!DOCTYPE html>
<html>
<head>
<title>HTML hr Tag</title>
</head>
<body>
<p>This text will be followed by a horizontal line <hr /></p>
</body>
</html>

Produrrà il seguente risultato:

This text will be followed by a horizontal line


Attributi Globali

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

Attributi Specifici

Il tag HTML <hr> supporta anche i seguenti attributi aggiuntivi:

AttributoValoreDescrizione
align left
right
center
Deprecato-Specifica l' allineamento della linea orizzontale.
noshade noshadeDeprecato-Rimuove l' effetto ombra che viene aggiunto da alcuni browser.
size pixels o %Deprecato-Specifica l' altezza della linea orizzontale.
width pixels o %Deprecato-Specifica la larghezza della linea orizzontale.

Attributi Evento

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

Compatibilità Browser

ChromeFirefoxIEOperaSafariAndroid
SiSiSiSiSiSi
html_tags_reference.htm
Advertisements