0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【備忘録】HTMLで同一階層のパスを指定する方法

Last updated at Posted at 2017-03-28

HTMLやCSSでうまく画像ファイルが読み込まない…

コーディング初心者です。ご容赦ください。
タイトルのような初歩的なことで困ってました。

### まずはみんな知ってる1つ上の階層のパスの指定の仕方

「../」(ドットドットスラッシュ)ですね

<a href = "../index.html">1つ上の階層のindexにアクセス</a>

そして、同じ階層のパスの指定の仕方

<a href = "./image.jpg">同じ階層の画像ファイルを指定</a>
「./」(ドットスラッシュ)…これだけでよかったんですね

何かご指摘ありましたらよろしくお願いします。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?