In the second code snippet provided, what is the significance of using 'selected="selected"' instead of just 'SELECTED'?

When using HTML, the attribute 'selected' should be set to 'selected' in order to indicate that an option in a dropdown menu is selected. Using 'SELECTED' instead of 'selected' may not work as expected because HTML is case-sensitive. By setting 'selected="selected"', we ensure that the option is correctly marked as selected.

<select name="dropdown">
    <option value="1" <?php if($selectedOption == 1) echo 'selected="selected"'; ?>>Option 1</option>
    <option value="2" <?php if($selectedOption == 2) echo 'selected="selected"'; ?>>Option 2</option>
    <option value="3" <?php if($selectedOption == 3) echo 'selected="selected"'; ?>>Option 3</option>
</select>