HTML - Image

김석환·2020년 10월 11일
0

HTML

목록 보기
7/8
post-thumbnail

이미지

웹에 이미지를 사입하는 경우 img 태그를 사용한다.

  • src - 이미지 파일 경로
  • alt - 이미지 파일을 로드하지 못할 경우 표시되는 문자
  • width - 이미지의 너비 (CSS)
  • height - 이미지의 높이 (CSS)
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <img src="./html.png" alt="이미지가 없어용">
    <img src="./css.png" alt="이미지가 없어용">
</html>

0개의 댓글