Esempio
Stile l'elemento con id="firstname" :
#firstname
{
background-color: yellow;
}
Prova tu stesso " Definizione e utilizzo
Le # id selettore stili l'elemento con l'ID specificato.
Versione: | CSS1 |
---|
Supporto per il browser
Selettore | |||||
---|---|---|---|---|---|
#id | sì | sì | sì | sì | sì |
CSS Sintassi