23 lines
314 B
HTML
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>
|