
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<img src="a.jpg" alt = "Al Sheik" width="300px" height="300px" />
</body>
</html>
上記のコードでは、参照していた画像を表示できません。何が間違っているのか疑問に思っていました。以下は、フォルダーとファイルの権限です。
-rwxrwxrwx 1 pipi pipi 100726 Oct 12 16:14 a.JPG
-rw-rw-rw- 1 pipi pipi 2475 Oct 12 18:41 class.php
drwxrwxr-x 2 pipi pipi 4096 Oct 13 15:14 image
-rw-rw-r-- 1 pipi pipi 11321 Sep 28 18:38 index.html
-rw-rw-r-- 1 pipi pipi 431 Oct 13 15:40 index.php
-rw-rw-rw- 1 pipi pipi 157 Oct 12 10:50 me.php
-rw-rw-rw- 1 pipi pipi 447 Oct 12 15:00 my.html
-rw-rw-rw- 1 pipi pipi 2475 Oct 12 18:55 new.html
-rw-rw-rw- 1 pipi pipi 316 Oct 8 10:41 test.php
答え1
大文字と小文字は区別されます。
画像が呼び出された場合は、a.JPG
HTMLに正確に記述する必要があります。
<img src="a.JPG" alt = "Al Sheik" width="300px" height="300px" />