AdNow
loading...
Etiqueta HTML basefont
- Obtener vínculo
- X
- Correo electrónico
- Otras apps
Etiqueta HTML
<basefont> . No se admite en HTML5.
Ejemplo
Especifique un color de texto y un tamaño de fuente predeterminados para el texto en la página:
<head>
<basefont color="red" size="5">
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
Inténtalo tú mismo "Definición y uso
La etiqueta <basefont> no es compatible con HTML5. Utilice CSS en su lugar.
La etiqueta <basefont> especifica un color de texto predeterminado, tamaño de fuente o familia de fuentes para todo el texto de un documento.
Soporte del navegador
| Element | |||||
|---|---|---|---|---|---|
| <basefont> | Not supported | Not supported | Not supported | Not supported | Not supported |
Nota : la etiqueta <basefont> es compatible con Internet Explorer 9 y versiones anteriores.
Diferencias entre HTML 4.01 y HTML5
La etiqueta <basefont> no es compatible con HTML5.
Notas de compatibilidad
En nuestro tutorial de CSS puede encontrar más información sobre el color del texto de CSS y las fuentes de CSS .
Atributos opcionales
| Attribute | Value | Description |
|---|---|---|
| color | color | Not supported in HTML5. Specifies the default color for text in a document |
| face | font_family | Not supported in HTML5. Specifies the default font for text in a document |
| size | number | Not supported in HTML5. Specifies the default size of text in a document |
- Obtener vínculo
- X
- Correo electrónico
- Otras apps