CSS Text Align Example :
<!DOCTYPE html>
<html>
<head>
<title> kod4u </title>
<style type="text/css">
h1, p {
text-align: center;
}
</style>
</head>
<body>
<h1> Text Align Example </h1>
<p> Here Text Align property is used to set horizontal alignment of a text. </p>
<p> And Alignment are : </br>
# text-align: center </br>
# text-align: right </br>
# text-align: justify </br>
</p>
</body>
</html>
OUTPUT
<html>
<head>
<title> kod4u </title>
<style type="text/css">
h1, p {
text-align: center;
}
</style>
</head>
<body>
<h1> Text Align Example </h1>
<p> Here Text Align property is used to set horizontal alignment of a text. </p>
<p> And Alignment are : </br>
# text-align: center </br>
# text-align: right </br>
# text-align: justify </br>
</p>
</body>
</html>
No comments:
Post a Comment