HTML <basefont> -tag
Niet ondersteund in HTML5.
De <basefont>
tag werd in HTML 4 gebruikt om een standaard tekstkleur, lettergrootte of lettertypefamilie op te geven voor alle tekst in een HTML-document.
Wat te gebruiken in plaats daarvan?
Voorbeeld
Specificeer een standaard tekstkleur voor een pagina (met CSS):
<html>
<head>
<style>
body {
color: red;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This
is a paragraph.</p>
</body>
</html>
Voorbeeld
Specificeer een standaard font-familie voor een pagina (met CSS):
<html>
<head>
<style>
body {
font-family: courier, serif;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This
is a paragraph.</p>
</body>
</html>
Voorbeeld
Specificeer een standaard lettergrootte voor een pagina (met CSS):
<html>
<head>
<style>
body {
font-size: 50px;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a
paragraph.</p>
</body>
</html>
Tip: In onze CSS tutorial vind je meer informatie over CSS tekstkleur en CSS fonts .