tidy-html5/test/html5/html4/center5.html
2014-11-22 15:42:28 +08:00

23 lines
314 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>
center tag
</title>
<style>
p.ctr { text-align: center; }
</style>
</head>
<body>
<center>
<p>This text will be center-aligned.</p>
</center>
<p>Nomal left text</p>
<p class="ctr">Center aligned by CSS</p>
</body>
</html>