How can PHP tags be used effectively to display PHP code?

To display PHP code effectively using PHP tags, you can use the `echo` or `print` functions to output the code directly to the browser. This allows you to mix HTML and PHP code within the same file and easily display dynamic content.

<?php
echo "Hello, World!";
?>