You can style it by the following way: echo "<p style='color:red;'>" . $ip['cityName'] . "</p>"; echo "<p style='color:red;'>" . $ip['countryName'] . "</p>";