본문 바로가기
웹코딩 배우기/· HTML

HTML iframe

by 닐기 2019. 10. 15.

iframe은 html 안에 html 문서를 표시하는 태그다.

 

- 기본

<iframe src="문서주소"></iframe>

 

- 프래임 크기 지정 : 단위는 기본 px.

<iframe src="문서주소" height="300 width="300"></iframe>

<iframe src="문서주소" style="height: 300px; width: 300px;"></iframe>

 

- 프래임은 기본으로 테두리가 표시된다. 테두리 안 보이게 하기.

<iframe src="문서주소" style="height: 300px; width: 300px; boder: none;"></iframe>

 

 

<h2>html iframe</h2>
<iframe src="https://www.daum.net" height="300" width="300"></iframe>
<p></p>
<iframe src="https://www.daum.net" style="height: 300px; width: 300px; border: none;"></iframe>

html iframe