圖片 07|圖片加上說明

用 figure 與 figcaption 組合圖片和圖說。

重點與範例

<figure>
  <img src="images/lesson-photo.svg" alt="兩座山與太陽的示意圖"
       width="480" height="300" style="max-width:100%;height:auto;">
  <figcaption>圖一:圖片排版練習。</figcaption>
</figure>
兩座山與太陽的示意圖
圖一:圖片排版練習。

figure 將圖片與圖說視為一組;figcaption 是所有讀者都看得到的說明,與 alt 用途不同。

動手改一處

加入自己的圖說,並寫出能描述圖片內容的 alt。