What is the best practice for setting font size in PHP output?

When setting font size in PHP output, it is best practice to use CSS to define the font size. This allows for separation of content and presentation, making the code cleaner and more maintainable. By using CSS, you can easily adjust the font size across multiple elements without having to modify the PHP code.

<?php
echo '<html>';
echo '<head>';
echo '<style>';
echo 'body { font-size: 16px; }';
echo '</style>';
echo '</head>';
echo '<body>';
echo '<p>This is some text with a font size of 16px.</p>';
echo '</body>';
echo '</html>';
?>