Tag iframe in HTML 5. The HTML iframe> tag is used to specify an inline frame, or a nested browsing environment, as the HTML5 specification calls it. By just supplying the content to the iframe> via the srcdoc attribute, you can create an inline frame without needing another document.