html tag frame

 html tag frame

For html tags, usually in the <html> tag on the wrapped in <head> tags and <body> tags, the main body element defines the document, a document that contains all of the content (such as text, hyperlinks, images, tables and lists, etc.). And you want to appear in the pages all the contents written in the <body> tag on the inside.

E.g:

<!DOCTYPE html>

<html>
  <head>
    <title></title>

    <meta charset="utf-8">
  </head>
  <body>

    <P> page can be displayed </ p>

  </body>
</html>

 

 

But there is another large frame, is <frameset> tag pair, which is used to organize a plurality of windows (frames), code demonstrates:

<!DOCTYPE html>
<html>
<head>
  <title></title>
</head>
  <frameset cols="25%,50%,25%">
    <frame  style="background-color: yellow ">
    <frame  style="background-color: green ">
    <frame  style="background-color: lightbl ">
  </frameset>
</html>

 

 

     In its simplest application, <frameset> tag within the framework of the provisions will only focus on how many how many columns or rows, you must use the cols or rows attribute exists.

Cols code is represented by sub-column, the relative widths represented by the first column 25% of the overall width of the second column of the overall width of 50%, 25% the third column of the overall width of, respectively, coupled with a different background color, it looks more clear. Similar rows may be divided into several lines dividing the entire height. If the row or column can not be divided completely occupy the entire width or height, the last increase in a * to divide the remaining width or height.

<Frameset> independently of each frame there document can be used to call up the src attribute, e.g. <frame src = "a.html"> in a framework for the transfer of files a.html.

 

Note that: not use the <body> </ body> tag with <frameset> </ frameset> tag, which are different from the frame architecture of the home. However, if you need to add a <noframes> tag for the browser does not support frames, be sure to place this tag in <body> </ body> tag!

Guess you like

Origin www.cnblogs.com/wodeboke-y/p/11266387.html