Set paragraph tag text align Center using bootstrap classes in HTML,PHP

How to create p tag with text align center using bootstrap class.

In this tutorial we making paragraph p tag with bootstrap text-center class. This class will automatically set our paragraph tag text align as center. So here is the complete step by step Set paragraph tag text align Center using bootstrap classes in HTML,PHP.

How to Set paragraph tag text align Center using bootstrap classes in HTML,PHP.

https://www.android-examples.com/demo/heading-tag.html
Code for p-align-center.html file.

 <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Text Align Center</title>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>

</head>

<body>

<div class="container">

<h1 class="text-center">Text Align Center</h1>

<p class="text-center">This is Demo Sample Text with text align center.</p>
 
</div>

</body>
</html>

Screenshot:

Set paragraph tag text align Center using bootstrap classes in HTML,PHP

Leave a Reply

Your email address will not be published. Required fields are marked *