How can HTML tags be effectively used to display results from PHP arrays on a monitor?

To display results from PHP arrays on a monitor using HTML tags, you can loop through the array using PHP and then echo out the array elements within the appropriate HTML tags. This allows you to format the output as needed for display on a monitor.

<?php
$fruits = array("Apple", "Banana", "Orange");

echo "<ul>";
foreach ($fruits as $fruit) {
    echo "<li>$fruit</li>";
}
echo "</ul>";
?>