ifame 태그
: 웹 문서에 동영상 / 웹 문서(다른사이트)를 넣을 수 있게 하는 태그
속성
- width : 가로길이
- height : 세로길이
- frameborder : 테두리 표시여부 (1이면 표시, 0이면 x)
- scrolling : 스크롤 바 유무 선택 (yse는 표시, no는 x, auto는 자동)
- 사용) 블로그에 유튜브 영상을 가져오는 경우 많이 사용
<body>
<iframe src="/day02/08_table연습문제.html" frameborder="1" width="300px">
iframe을 지원하지 않습니돵</iframe>
<iframe src="http://naver.com" frameborder="1"></iframe>
<iframe src="http://daum.net" frameborder="1"></iframe>
<!-- 유튜브를 가져오는 경우) 퍼가기 -> iframe을 전체 가져오기 -->
<iframe width="560" height="315" src="https://www.youtube.com/embed/KBOG-L9Inlc" title="YouTube video player"
frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media;
gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</body>
</html>
'HTML - CSS > html 공부' 카테고리의 다른 글
[HTML] style 태그 (0) | 2023.04.05 |
---|---|
[HTML] img 태그 (0) | 2023.04.05 |
[HTML] table 태그 (0) | 2023.04.05 |
[HTML] list 태그 (0) | 2023.04.05 |
[HTML] textarea 태그 (0) | 2023.04.05 |