I tag HTML da <h1> a <h6>


Descrizione

I tag HTML da <h1> a <h6> sono usati per creare dei titoli nei documenti HTML. <h1> definisce un titolo grande, mentre <h6> lo rende più piccolo.

Esempio

<!DOCTYPE html>
<html>
<head>
<title>HTML <h1> to <h6> Tag</title>
</head>
<body>
<h1>Around the World</h1>
<h2>Asian Countries</h2>
<h3>India</h3>
</body>
</html>

Produrrà il seguente risultato:

Around the World

Asian Countries

India

Attributi Globali

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

Attributi Specifici

The HTML <h1> to <h6> supporta anche i seguenti attributi aggiuntivi:

AttributoValoreDescrizione
alignleft
right
center
justify
Deprecato - Definisce l' allineamento del contenuto.

Attributi Evento

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

Compatibilità Browser

ChromeFirefoxIEOperaSafariAndroid
SiSiSiSiSiSi
html_tags_reference.htm
Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements