The framework structure allows several web pages to be displayed in one page in the browser at the same time. We do not recommend using it to design your website.
The framework allows you to open two or even multiple pages in one browser window. You can understand this way that <frameset> is actually a big <table>, but the entire page is the main body of <table>, and the content of each cell is an independent web page.
Since we say that the framework structure can be understood as a table with a web page as a cell, we must divide the columns. Where the cols attribute divides the page into several columns, while the rows attribute divides the page into several rows. Let’s take a look at an example below.
<html><frameset rows=25%,75%>
<frame src=1.html/>
<frame src=3.html/>
</frameset>
</html>
where 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. Frame tag <frame>
The <frame> tag has been used in the above example, and its src attribute is what will be displayed in this framework. In this example, the two frames can be changed by dragging and dropping. If you want them to be fixed in size, you can use the noresize=noresize property.
Note : The <frame> tag is an empty tag, and one/ needs to be added to meet the requirements of XHTML.This tag will only work if the browser does not support the framework structure. Since almost all netizens’ browsers now support the framework structure, we will not introduce this tag here. If you want to know the relevant content, you can check the HTML manual on the Internet.
The DTD of a frame page is different from that of a general web page. The declaration method is as follows:
<!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Frameset//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd>