What are the potential pitfalls of using PHP for text output without incorporating HTML and CSS?

When using PHP for text output without incorporating HTML and CSS, the main pitfall is that the text may not be formatted or styled properly for display on a webpage. To solve this issue, you can use HTML tags within the PHP code to structure the text and CSS to style it accordingly.

<?php
$text = "Hello, world!";
echo "<p style='font-size: 20px; color: blue;'>$text</p>";
?>