HTML <center> Etiketi
HTML5'te Desteklenmez.
Etiket <center>
, metni ortaya hizalamak için HTML4'te kullanıldı.
Yerine Ne Kullanılır?
Örnek
Metni ortaya hizala (CSS ile):
<html>
<head>
<style>
h1 {text-align: center;}
p {text-align:
center;}
div {text-align: center;}
</style>
</head>
<body>
<h1>This is a
heading</h1>
<p>This is a paragraph.</p>
<div>This
is a div.</div>
</body>
</html>