close
圖片存在同一個資料夾中
<img src="圖片網址">←這一句是必要的,以下可要可不要(都用空格分開)
alt="圖片無法顯示時的字樣"
title="滑鼠移過去的字樣"
height,width (圖高、圖寬)
figure元素是一個媒體群組
figcaption是figure這個群組的標題
<!DOCTYPE html>
<html lang="zh-tw">
<head>
<title>figure</title>
<meta charset="UTF-8">
<style>
</style>
</head>
<body>
<figure>
<img src="../picture/p1.jpg" alt="無法顯示" title="你好">
<img src="../picture/p2.jpg">
<figcaption>我是群組標題,一個figure只能有一個我</figcaption>
</figure>
</body>
全站熱搜