CSS/JS & Favicons

All HTML topics
∙ Chapter 28

CSS/JS & Favicons

Connect your CSS and JavaScript using <link> and <script>. A favicon makes your site look professional in the browser tab.

Quick rules

CSS: <link rel="stylesheet" href="style.css"> in the <head>.

JS: Prefer <script src="app.js" defer></script> so HTML loads first.

Favicon: <link rel="icon" href="/favicon.png">.

assets.php
📝 Edit Code
👁 Live Preview
💡 In real sites, move CSS/JS to separate files to keep HTML clean.