본문 바로가기

HTML5 tag 기본태그

HTML5 Iframe 태그


아이프레임 태그


<iframe src="demo_iframe.htm" height="200" width="300"></iframe>


<iframe src="demo_iframe.htm" height="100%" width="100%"></iframe>


<iframe src="demo_iframe.htm" style="height:200px;width:300px;"></iframe>


<iframe src="demo_iframe.htm" style="border:2px solid red;"></iframe>


<iframe src="demo_iframe.htm" name="iframe_a"></iframe>

<p><a href="https://www.주소.com" target="iframe_a">주소.com</a></p>


타겟 종류입니다

blank : 새로운 창이 열립니다.
예) <a href="주소.html" target="_blank">새창</a>

self : 자기 창에다가 링크된 페이지가 열립니다.
예) <a href="주소.html" target="_self">현재창</a>

parent : 기존창의 앞 창에 페이지가 열립니다. 
예) <a href="주소.html" target="_parent">부모창</a>

top : 최상위 인터넷창에 페이지가 열립니다.
예) <a href="주소.html" target="_top">현재창</a>


'HTML5 tag 기본태그' 카테고리의 다른 글

html 자바스크립트 JavaScript 태그  (0) 2019.07.18
HTML Tables 태그  (0) 2019.07.11
HTML5 id 아이디 속성  (0) 2019.07.11
HTML5 class 클래스 속성  (0) 2019.07.11
html5 블록, inline요소  (0) 2019.07.11