What best practice should be followed when calling PHP functions within HTML tags like <link>?

When calling PHP functions within HTML tags like <link>, it is best practice to use the PHP opening and closing tags <?php ?> to properly execute the PHP code. This ensures that the PHP code is processed correctly and the desired output is displayed within the HTML tag.

&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;/style.css&quot;&gt;