HTML <stile> tipo Attributo

❮ Tag HTML <stile>

Esempio

Utilizza l'attributo type per specificare il tipo di supporto del tag <style> :

<style type="text/css">
h1 {color:red;}
p {color:blue;}

</style>

Definizione e utilizzo

L' typeattributo specifica il tipo di supporto Internet (precedentemente noto come tipo MIME) del <style>tag.

L' typeattributo identifica il contenuto tra i tag <style>e .</style>

Il valore predefinito è "text/css", che indica che il contenuto è CSS.


Supporto browser

Attribute
type Yes Yes Yes Yes Yes

Sintassi

<style type="media_type">

Valori di attributo

Value Description
media_type The Internet media type of the style sheet. For now, the only supported value is "text/css". Look at IANA Media Types for a complete list of standard media types

❮ Tag HTML <stile>