[html 6.] html에 이미지, 동영상, iframe 넣는 방법 (+유튜브영상 퍼오기)


[html 6.] html에 이미지, 동영상, iframe 넣는 방법 (+유튜브영상 퍼오기)

1. 이미지 넣기 (img 태그) html에 이미지 넣을 때는 img 태그 사용 ** src ="경로" ** alt ="대체텍스트" <body> <img src="images/naver.png" alt="네이버로고"> </body> Q. 대체텍스트는 왜 작성하는건가요? - 이미지 설명 - 스크린 리더 등 시각장애 있는 사용자 지원 - 검색 엔진 (alt 텍스트를 통해 이미지 검색결과 반영) - 로딩 실패 대체 (이미지 로드 안될 경우 텍스트 보임) 2. 비디오 넣기 (video 태그) html에 비디오 넣을 때 video 태그 사용 ** src = "경로" ** controls (재생하는 버튼) ** autoplay (자동재생) ** muted (음소거) ** poster = "경로(썸네일)" <body> <video src="video/pooh.mp4" controls autoplay muted poster="images/poster.png"></video> </body> Q. 왜...


#htmlimg #youtubeiframe #iframe #html이미지크기 #html이미지삽입 #html유튜브영상 #html유튜브공유 #html영상가져오기 #html동영상크기 #html동영상삽입 #유튜브iframe

원문링크 : [html 6.] html에 이미지, 동영상, iframe 넣는 방법 (+유튜브영상 퍼오기)