Home  >  Article  >  Web Front-end  >  Summary of the role of HTML frame tags

Summary of the role of HTML frame tags

巴扎黑
巴扎黑Original
2017-06-07 16:47:253461browse

Almost every web page we browse is divided into blocks, and each block has different functions, such as the navigation bar in the head, the content part in the middle, etc. These blocks are divided by the frame tag in HTML. layout, let’s summarize these frame tags:

1.HTML frame tags frameset, frame, iframe, noframes

Generally in a browser document window Only one web page file can be displayed. However, using frame tags, a browser document window can be divided into multiple sub-windows, and an independent web page file can be displayed in each sub-window.
Frame is translated from English Frame, which represents a sub-window in the browser document window. Each frame can display an HTML file, and multiple frames form a frameset (Frameset).

Summary of the role of HTML frame tags

2.HTML frame tag

There are three main types of tags related to HTML frame:

Frame structure tag

Frame tag

Summary of the role of HTML frame tags

##3.

XHTML introductory learning tutorial: Using frame tags_HTML/Xhtml_Web page production

The frame structure allows several web pages to be displayed on one page of the browser at the same time. We don't recommend you use it to design websites. Frame structure tag

Frame allows you to open two or even more pages in one browser window. You can understand it this way,

is actually a big , but the entire page is the main body of the
, and the content of each cell is an independent web page. Divide the frame structure into columns ("cols" and "rows" attributes)
Since we say that the frame structure can be understood as a table with cells as a web page, it must be divided into columns. The cols attribute divides the page into several columns, while the rows attribute divides the page into several rows. Let’s look at an example.

Summary of the role of HTML frame tags

4.

Example application of HTML frame tags

The main basic tags in HTML are as follows:

Comments Tag;

Paragraph tag

;

Title tag

, the tag's Parameters from h1~h6;

Line break label
or
;

(font) bold label

(Font)Italic tag;

Subscript;

Summary of the role of HTML frame tags ##5.

Src value is the address of the embedded web page Scrolling Whether there is a scroll bar, yes yes, no no, auto automatically displays or hides according to the displayed html

Width Width Height Height

Height and width can be a percentage or a specific height and width value, and no unit is required. Usually you need to set specific values ​​for height and width.

Special Note: If you want to hide the scroll bar that appears in the iframe, you can use Scrolling=no to hide the scroll bar. Of course, you can also use CSS styles to hide the scroll bar. You can also set the appropriate height and width to not display scroll bars.

The above is the detailed content of Summary of the role of HTML frame tags. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn