Atributo de tipo HTML <style>
Exemplo
Use o atributo type para especificar o tipo de mídia da tag <style> :
<style type="text/css">
h1 {color:red;}
p {color:blue;}
</style>
Definição e uso
O type
atributo especifica o tipo de mídia da Internet (anteriormente conhecido como tipo MIME) da <style>
tag.
O type
atributo identifica o conteúdo entre as
tags
<style>
e .</style>
O valor padrão é "text/css", que indica que o conteúdo é CSS.
Suporte ao navegador
Attribute | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
Sintaxe
<style type="media_type">
Valores de atributo
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 <estilo>