la sintassi è corretta.
il file html e quello css si trovano nella stessa cartella?