HTML5 FAQ — Part 7

Q68 — Difference between URL, URI, and URN?

URL: Address of resource (e.g., https://example.com/page)

URI: Identifier of resource (URL or URN)

URN: Unique name without location (e.g., urn:isbn:0451450523)

Q69 — What is favicon?

Small icon displayed in browser tab/address bar.

<link rel="icon" type="image/png" href="favicon.png">

Q70 — Absolute vs Relative vs Root-relative URLs?

Absolute: Full path (https://example.com/page)

Relative: Based on current file (about.html)

Root-relative: From site root (/images/logo.png)

Q71 — What are iframes? Pros & Cons?

Pros: Embed external content (maps, ads)

Cons: Security issues, SEO problems, slow

Q72 — HTMLCollection vs NodeList?

HTMLCollection: Live list (e.g., getElementsByTagName)

NodeList: Static list, supports forEach (querySelectorAll)

Q73 — PWA vs Normal Website?

PWA: Offline support, installable, push notifications

Normal Site: Needs internet, no app-like features

Q74 — Relationship between HTML, CSS, and JS?

HTML: Structure

CSS: Style & layout

JS: Interactivity & dynamic behavior

Q75 — HTTP vs HTTPS?

HTTP: Unsecured communication

HTTPS: Secure, encrypted (SSL/TLS), required for modern apps

⬅ Home