[HTML]
in Tech-Stack on HTML
Contents
μ λκ²½λ‘ μλκ²½λ‘
<a href="dir1/file.html">link1</a><br>
<a href="/dir1/file.html">link2</a><br>
- μλκ²½λ‘ -
href="dir1/file.html"- νμ¬ λλ ν 리μμ href κ°μΌλ‘ λμ΄μ¨ κ°μ μ°Ύλλ€.
νμ¬ μμΉ : localhost/dir0
μ΄λμ : localhost/dir0/dir1/file.html
- νμ¬ λλ ν 리μμ href κ°μΌλ‘ λμ΄μ¨ κ°μ μ°Ύλλ€.
- μ λκ²½λ‘ -
href="/dir1/file.html"- νμ¬ λλ ν 리μ μκ΄ μμ΄ rootλΆν° νμνλ€.
νμ¬ μμΉ : localhost/dir0
μ΄λ μ : localhost/dir1/file.html
- νμ¬ λλ ν 리μ μκ΄ μμ΄ rootλΆν° νμνλ€.
