What are the differences between using "src" and "href" attributes when linking CSS files in PHP?

When linking CSS files in PHP, it is important to use the correct attribute depending on the context. The "href" attribute is used for linking external resources like CSS files, while the "src" attribute is typically used for referencing image files or scripts. Using the correct attribute ensures that the browser can properly load and apply the CSS styles to the webpage.

// Using href attribute to link external CSS file
<link rel="stylesheet" type="text/css" href="styles.css">