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

WBOY
Release: 2016-05-16 16:45:45
Original
1413 people have browsed it

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
Frames allow you to open two or even multiple pages within one browser window. You can understand it this way, is actually a big , but the entire page is the main body of
, 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.





Among them, "rows="25%,75%" means that the page is divided into two rows, because it has two attribute values, and their sizes are 25% and 75% of the page height respectively. Click here to view The display effect of the above code is the frame tag .
The tag has been used in the above example, and its src attribute is the content to be displayed in this frame. The two frames in this example can be resized by dragging them apart. If you want them to be fixed in size, use the noresize="noresize" attribute.
Note: The tag is an empty tag and needs to be added with a "/" to comply with XHTML requirements. About the tag
This tag will only work when the browser does not support the frame structure. Since almost all Internet users' browsers now support the frame structure, we will not introduce this tag here. If you want to know more about it, you can check out the HTML manual on the Internet. Framework and DTD
The DTD of frame pages is different from that of general web pages. The declaration method is as follows:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!