HTML learning 8: Framework tags of common tags

Source: Internet
Author: User

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; Amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; (3) the &amp; amp; amp; lt; cke: body &amp; amp; gt; &amp; amp; lt;/cke: body &amp; amp; gt; tag and &amp; amp; lt; frameset &amp; amp; gt; &amp; amp; lt;/frameset &amp; amp; gt; tags are used at the same time! However, if you add &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; &amp; amp; lt; noframes &amp; amp; gt; label, you must nest this text in &amp; amp; lt; cke: body &amp; amp; gt; &amp; amp; lt;/cke: body &amp; amp; gt; inside the tag. &amp; Amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; demo framework example: &amp; amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; example 7 &amp; amp; lt; /p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; 1 the code of the first web page has been found in the above Web framework. &amp; Amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; 2. Code of the Logo webpage page displayed on the top layer of the framework: &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; amp; gt; &amp; amp; lt; pre class = brush: java; &amp; amp; gt; &amp; amp; lt ;! DOCTYPE html PUBLIC-// W3C // dtd xhtml 1.0 Transitional // EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;amp;gt ; &amp; Amp; lt; cke: html xmlns = http://www.w3.org/1999/xhtml&amp;amp;gt ; &amp; Amp; lt; cke: head &amp; amp; gt; &amp; amp; lt; cke: encoded &amp; amp; gt; % 3 Cmeta % 20http-equiv % 3DContent-Type % 20 content % 3 Dtext % 2 Fhtml % 3B % 20 charset % 3Dgb2312% 20% 2F % 3E &amp; amp; lt;/cke: encoded &amp; amp; gt; &amp; amp; lt; cke: title &amp; amp; gt; untitled document &amp; amp; lt;/cke: title &amp; amp; gt; &amp; amp; lt;/cke: head &amp; amp; gt; &amp; amp; lt; cke: body &amp; amp; &amp; amp; gt; &amp; amp; lt; h1 &amp; amp; gt; this is my website Logo. You can place images here, or plan your own &amp; amp; lt;/h1 &amp; amp; gt; &amp; amp; lt;/cke: body &amp; amp; amp; gt; &amp; amp; lt;/cke: html &amp; amp; gt; &amp; amp; lt;/pre &amp; amp; gt; &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; 3. webpage code displayed in the lower half: &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; &amp; amp; lt; pre class = brush: java; &amp; amp; gt; &amp; amp; lt ;! DOCTYPE html PUBLIC-// W3C // dtd xhtml 1.0 Transitional // EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;amp;gt ; &amp; Amp; lt; cke: html xmlns = http://www.w3.org/1999/xhtml&amp;amp;gt ; &amp; Amp; lt; cke: head &amp; amp; gt; &amp; amp; lt; cke: encoded &amp; amp; gt; % 3 Cmeta % 20http-equiv % 3DContent-Type % 20 content % 3 Dtext % 2 Fhtml % 3B % 20 charset % 3Dgb2312% 20% 2F % 3E &amp; amp; lt;/cke: encoded &amp; amp; gt; &amp; amp; lt; cke: title &amp; amp; gt; untitled document &amp; amp; lt;/cke: title &amp; amp; gt; &amp; amp; lt;/cke: head &amp; amp; gt; &amp; amp; lt; cke: body &amp; amp; amp; gt; &amp; amp; lt; h3 &amp; amp; gt; link to the left sidebar &amp; amp; lt;/h3 &amp; amp; gt; &amp; 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; amp; gt; Link 1 &amp; amp; lt;/a &amp; amp; gt; &amp; 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; amp; gt; Link 2 &amp; amp; lt;/a &amp; amp; gt; &amp; 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; amp; gt; link 3 &amp; amp; lt;/a &amp; amp; gt; &amp; amp; lt;/cke: body &amp; amp; gt; &amp; amp; lt;/cke: html &amp; amp; gt; &amp; amp; lt;/pre &amp; amp; gt; 4 lower half: The webpage code displayed in the left half: &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; amp; gt; &amp; amp; lt; pre class = brush: java; &amp; amp; gt; &amp; amp; lt ;! DOCTYPE html PUBLIC-// W3C // dtd xhtml 1.0 Transitional // EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;amp;gt ; &amp; Amp; lt; cke: html xmlns = http://www.w3.org/1999/xhtml&amp;amp;gt ; &amp; Amp; lt; cke: head &amp; amp; gt; &amp; amp; lt; cke: encoded &amp; amp; gt; % 3 Cmeta % 20http-equiv % 3DContent-Type % 20 content % 3 Dtext % 2 Fhtml % 3B % 20 charset % 3Dgb2312% 20% 2F % 3E &amp; amp; lt;/cke: encoded &amp; amp; gt; &amp; amp; lt; cke: title &amp; amp; gt; untitled document &amp; amp; lt;/cke: title &amp; amp; gt; &amp; amp; lt;/cke: head &amp; amp; gt; &amp; amp; lt; cke: body &amp; amp; amp; gt; &amp; amp; lt; h2 &amp; amp; gt; content display area &amp; amp; lt;/h2 &amp; amp; gt; &amp; amp;; Amp; lt;/cke: body &amp; amp; gt; &amp; amp; lt;/cke: html &amp; amp; gt; &amp; amp; lt;/pre &amp; amp; gt; 5 Table &amp; 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; Amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; 6 webpage display result: &amp; amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; click link 1: &amp; amp; lt; /p &amp; amp; gt; &amp; 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; amp; gt; &amp; amp; lt; br &amp; amp; gt; &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; click link 2: &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; &amp; 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; amp; gt; &amp; amp; lt; br &amp; amp; gt; &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; click link 2: &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; &amp; 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; amp; gt; &amp; amp; lt; br &amp; amp; gt; &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; &amp; 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; amp; gt; &amp; amp; lt; br &amp; amp; gt; &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; &amp; amp; lt; br &amp; amp; gt; &amp; amp; lt; /p &amp; amp; gt; &amp; amp; lt; br &amp; amp; gt; &amp; amp; lt; br &amp; amp; gt; &amp; amp; lt; /p &amp; amp; gt; &amp; amp; lt; br &amp; amp; gt; &amp; amp; lt; br &amp; amp; gt; &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; Amp; gt; &amp; amp; lt; br &amp; amp; gt; &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; &amp; amp; lt; br &amp; amp; gt; &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; &amp; amp; lt; br &amp; amp; gt; &amp; amp; lt; /p &amp; amp; gt; &amp; amp; lt; br &amp; amp; gt; &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; br &amp; amp; Amp; gt; &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; &amp; amp; lt; br &amp; amp; gt; &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; &amp; amp; lt; br &amp; amp; gt; &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; &amp; amp; lt; br &amp; amp; gt; &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; &amp; amp; lt; br &amp; amp; gt; &amp; amp; lt; /p &amp; amp; gt; &amp; amp; lt; br &amp; amp; g T; &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; br &amp; amp; gt; &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; &amp; amp; lt;/p &amp; amp; gt; &amp; amp; lt; p &amp; amp; gt; Copyright Disclaimer: this is an original blog article, reprinted without the consent of the blogger. &amp; Amp; lt;/p &amp; amp; gt;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.