<!DOCTYPE html> <html> <head> <title></title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <link rel="stylesheet" href="https://unpkg.com/bootstrap@3.3.7/dist/css/bootstrap.min.css"> <link rel="stylesheet" href="https://unpkg.com/bootstrap@3.3.7/dist/css/bootstrap-theme.min.css"> <script src="https://unpkg.com/jquery@3.4.1/dist/jquery.min.js"></script> <script src="https://unpkg.com/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2 class="text-left">Hello World (text-left)</h2> <h2 class="text-center">Hello World (text-center)</h2> <h2 class="text-right">Hello World (text-right)</h2> <h2 class="text-nowrap">Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World (text-justify)</h2> </div> </body> </html>