๐img tag๋ฅผ ์ฌ์ฉํด์ ๋ฃ์ด์!
์์ฑ์ผ๋ก src์๋ ๊ฒฝ๋ก๋ฅผ alt์๋ ์ฌ์ง์ ๋ํ ์ค๋ช ์ ์ ์ต๋๋ค. ๋ง์ฝ ์ฌ์ง ํ์ผ์ด ๋ถ๋ฌ์์ง์ง ์์ ๋ ์ฐ๊ฒ ๋๋ ๊ฑฐ์ฃ !
title๋ก๋ ๋ถ์ฐ์ค๋ช ์ด ๊ฐ๋ฅํ๋ฐ ์ด ๋ MDN์์๋ alt์ ๊ฐ์ ๋ด์ฉ์ ์ ์ง ์๋๋ก ๊ถ์ฅํ๊ณ ์์ต๋๋ค!
height์ width๋ก ์ฌ์ง์ ํฌ๊ธฐ ์กฐ์ ์ด ๊ฐ๋ฅํ๋ฐ ์ด๊ฒ๋ ์์ฆ์ CSS๋ก ์กฐ์ ํ๋ค๊ณ ํด์!
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<img
src="../images/coding.png"
alt="์ฝ๋ฉ์ค์ธ ๋
ธํธ๋ถ"
title="ํ๋ก๊ทธ๋๋ฐ"
width="300"
height="300"
>
<img src="../images/nathan-dumlao-zUNs99PGDg0-unsplash.jpg"
alt="coffee"
height="300"
>
</body>
</html>