- <img> tag - 이미지 파일을 넣기위해 사용함
- contains only attiributes
- closing tag 없음
- src - 이미지 파일의 위치를 지정함
- image file을 정의하는 방법 (같은 폴더에 있지 않을때에도)
- left-click the image
- click on properties
- now you can see "location"
- copy the location and paste it after the src attribute
- add "/" and then write the name of the picture +".jpg"
- alt - 이미지 파일의 부연설명, 구글 등 검색엔진에서 이 설명을 보고 올바른 사진이 사용되었는지 판단하므로 꼭 넣어주자.
- 이미지 size조절 - width, height
- border - 이미지 주위로 경계표시
댓글