HTML learning 8: Framework tags of common tags
The HTML markup language uses a framework to display more than one page in the same browser window.
I. Framework Overview
By using the framework, you can display more than one page in the same browser window. Each HTML document is called a framework, and each framework
Are independent from other frameworks.
Disadvantages of using the framework:
(1) developers must keep track of more HTML documents at the same time.
(2) It is difficult to print the entire page
Ii. Framework Structure labels ()
(1) Framework Structure label defines how to split windows into frames
(2) Each defined a series of rows or columns
(3) The value of the rows/cols attribute specifies the area on the screen occupied by each row or column.
& Amp; lt; br/& amp; gt;
The browser displays the following results:
3. Frame)
Tags define HTML documents placed in each frame. The above code has appeared!
5. inline framework <iframe> </p> <iframe src = URL> </iframe>
The URL points to the location of the isolated page.
(2) <iframe> label setting height and width </p> <p> the height and width attributes are used to specify the height and width of iframe. The default unit of attribute & #20540; Is pixel, but the percentage can also be set (for example, </p> <p> 80% ). <Br> (3) <Iframe> label deletion border </p> <p> the frameborder attribute specifies whether to display the border around iframe and set the attribute & #20540; if it is 0, the border can be removed. </P> <p> (4) Some older Browsers Do not support inline frameworks. If not, the content in the <iframe> label is invisible. </P> <p> (5) use <iframe> as the target of the link </p> <iframe> as the target of the link ). The target attribute of the link must reference the name attribute of <iframe>. </P> <pre class = brush: java;> <span style = font-size: 18px;> <! DOCTYPE html PUBLIC-// W3C // dtd xhtml 1.0 Transitional // EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd > <Cke: html xmlns = http://www.w3.org/1999/xhtml > <Cke: head> <cke: encoded> % 3 Cmeta % 20http-equiv % 3DContent-Type % 20 content % 3 Dtext % 2 Fhtml % 3B % 20 charset % 3Dgb2312% 20% 2F % 3E </cke: encoded> <cke: title> inline framework label demonstration </cke: title> </cke: head> <cke: body> <div align = center> <iframe srcloud 14-130r1115208.jpg height = 300 width = 280 name = iframe_a> This is a painting label. If you see this text, Sorry, your browser does not support this tag </iframe>
The browser displays the following results:
The result of clicking the Sina website is:
6. Basic precautions
(1) If a frame has a visible border, you can drag the border to change its size. To avoid this, you can
Add: noresize = noresize.
(2) Add
Label. & Amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; (3) the & amp; amp; lt; cke: body & amp; gt; & amp; lt;/cke: body & amp; gt; tag and & amp; lt; frameset & amp; gt; & amp; lt;/frameset & amp; gt; tags are used at the same time! However, if you add & amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; & amp; lt; noframes & amp; gt; label, you must nest this text in & amp; lt; cke: body & amp; gt; & amp; lt;/cke: body & amp; gt; inside the tag. & Amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; demo framework example: & amp; amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; example 7 & amp; lt; /p & amp; gt; & amp; lt; p & amp; gt; 1 the code of the first web page has been found in the above Web framework. & Amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; 2. Code of the Logo webpage page displayed on the top layer of the framework: & amp; lt;/p & amp; gt; & amp; lt; p & amp; amp; gt; & amp; lt; pre class = brush: java; & amp; gt; & amp; lt ;! DOCTYPE html PUBLIC-// W3C // dtd xhtml 1.0 Transitional // EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;gt ; & Amp; lt; cke: html xmlns = http://www.w3.org/1999/xhtml&amp;gt ; & Amp; lt; cke: head & amp; gt; & amp; lt; cke: encoded & amp; gt; % 3 Cmeta % 20http-equiv % 3DContent-Type % 20 content % 3 Dtext % 2 Fhtml % 3B % 20 charset % 3Dgb2312% 20% 2F % 3E & amp; lt;/cke: encoded & amp; gt; & amp; lt; cke: title & amp; gt; untitled document & amp; lt;/cke: title & amp; gt; & amp; lt;/cke: head & amp; gt; & amp; lt; cke: body & amp; & amp; gt; & amp; lt; h1 & amp; gt; this is my website Logo. You can place images here, or plan your own & amp; lt;/h1 & amp; gt; & amp; lt;/cke: body & amp; amp; gt; & amp; lt;/cke: html & amp; gt; & amp; lt;/pre & amp; gt; & amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; 3. webpage code displayed in the lower half: & amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; & amp; lt; pre class = brush: java; & amp; gt; & amp; lt ;! DOCTYPE html PUBLIC-// W3C // dtd xhtml 1.0 Transitional // EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;gt ; & Amp; lt; cke: html xmlns = http://www.w3.org/1999/xhtml&amp;gt ; & Amp; lt; cke: head & amp; gt; & amp; lt; cke: encoded & amp; gt; % 3 Cmeta % 20http-equiv % 3DContent-Type % 20 content % 3 Dtext % 2 Fhtml % 3B % 20 charset % 3Dgb2312% 20% 2F % 3E & amp; lt;/cke: encoded & amp; gt; & amp; lt; cke: title & amp; gt; untitled document & amp; lt;/cke: title & amp; gt; & amp; lt;/cke: head & amp; gt; & amp; lt; cke: body & amp; amp; gt; & amp; lt; h3 & amp; gt; link to the left sidebar & amp; lt;/h3 & amp; gt; & amp; lt; a data-cke-saved-href = http://blog.csdn.net/erlian1992/article/details/ Table label .html href = http://blog.csdn.net/erlian1992/article/details/ Table label. html target = right & amp; gt; Link 1 & amp; lt;/a & amp; gt; & amp; lt; a data-cke-saved-href = http://blog.csdn.net/erlian1992/article/details/ Hyperlink tag. html href = http://blog.csdn.net/erlian1992/article/details/ Superchain tag. html target = right & amp; gt; Link 2 & amp; lt;/a & amp; gt; & amp; lt; a data-cke-saved-href = http://blog.csdn.net/erlian1992/article/details/ Picture-in-picture label .html href = http://blog.csdn.net/erlian1992/article/details/ Picture-in-picture label. html target = right & amp; gt; link 3 & amp; lt;/a & amp; gt; & amp; lt;/cke: body & amp; gt; & amp; lt;/cke: html & amp; gt; & amp; lt;/pre & amp; gt; 4 lower half: The webpage code displayed in the left half: & amp; lt;/p & amp; gt; & amp; lt; p & amp; amp; gt; & amp; lt; pre class = brush: java; & amp; gt; & amp; lt ;! DOCTYPE html PUBLIC-// W3C // dtd xhtml 1.0 Transitional // EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;gt ; & Amp; lt; cke: html xmlns = http://www.w3.org/1999/xhtml&amp;gt ; & Amp; lt; cke: head & amp; gt; & amp; lt; cke: encoded & amp; gt; % 3 Cmeta % 20http-equiv % 3DContent-Type % 20 content % 3 Dtext % 2 Fhtml % 3B % 20 charset % 3Dgb2312% 20% 2F % 3E & amp; lt;/cke: encoded & amp; gt; & amp; lt; cke: title & amp; gt; untitled document & amp; lt;/cke: title & amp; gt; & amp; lt;/cke: head & amp; gt; & amp; lt; cke: body & amp; amp; gt; & amp; lt; h2 & amp; gt; content display area & amp; lt;/h2 & amp; gt; & amp;; Amp; lt;/cke: body & amp; gt; & amp; lt;/cke: html & amp; gt; & amp; lt;/pre & amp; gt; 5 Table & amp; #26684; tag webpage, the code of the hyperlink tag web page and the inline framework tag web page has been previously written, so we will not repeat them one by one. & Amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; 6 webpage display result: & amp; amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; click link 1: & amp; lt; /p & amp; gt; & amp; lt; img data-cke-saved-src = http://www.bkjia.com/uploads/allimg/151104/043T15O8-3.png Src = http://www.bkjia.com/uploads/allimg/151104/043T15O8-3.png Alt = & amp; gt; & amp; lt; br & amp; gt; & amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; click link 2: & amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; & amp; lt; img data-cke-saved-src = http://www.bkjia.com/uploads/allimg/151104/043T145Q-5.png Src = http://www.bkjia.com/uploads/allimg/151104/043T145Q-5.png Alt = & amp; gt; & amp; lt; br & amp; gt; & amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; click link 2: & amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; & amp; lt; img data-cke-saved-src = http://www.bkjia.com/uploads/allimg/151104/043T16294-7.png Src = http://www.bkjia.com/uploads/allimg/151104/043T16294-7.png Alt = & amp; gt; & amp; lt; br & amp; gt; & amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; & amp; lt; img data-cke-saved-src = http://www.bkjia.com/uploads/allimg/151104/043T122G-9.png Src = http://www.bkjia.com/uploads/allimg/151104/043T122G-9.png Alt = & amp; gt; & amp; lt; br & amp; gt; & amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; & amp; lt; br & amp; gt; & amp; lt; /p & amp; gt; & amp; lt; br & amp; gt; & amp; lt; br & amp; gt; & amp; lt; /p & amp; gt; & amp; lt; br & amp; gt; & amp; lt; br & amp; gt; & amp; lt;/p & amp; gt; & amp; lt; p & Amp; gt; & amp; lt; br & amp; gt; & amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; & amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; & amp; lt; br & amp; gt; & amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; & amp; lt; br & amp; gt; & amp; lt; /p & amp; gt; & amp; lt; br & amp; gt; & amp; lt;/p & amp; gt; & amp; lt; br & amp; Amp; gt; & amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; & amp; lt; br & amp; gt; & amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; & amp; lt; br & amp; gt; & amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; & amp; lt; br & amp; gt; & amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; & amp; lt; br & amp; gt; & amp; lt; /p & amp; gt; & amp; lt; br & amp; g T; & amp; lt;/p & amp; gt; & amp; lt; br & amp; gt; & amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; & amp; lt;/p & amp; gt; & amp; lt; p & amp; gt; Copyright Disclaimer: this is an original blog article, reprinted without the consent of the blogger. & Amp; lt;/p & amp; gt;