In HTML, file paths are used to tell the browser where a file (like an image, CSS, JS, video, etc.) is located.
There are two main types of paths:
https://example.com/images/logo.png
| 1. Absolute Path Example | 2. Relative Path Examples |
|---|---|
|
|
<div>
<h2>Title</h2>
<p>Some text here</p>
</div>
<div id="header">This is header</div>
<div class="box">Box 1</div>
<div class="box">Box 2</div>