Html frames are useful at dividing the web page or the web browser into multiple sections, they separate sections then load differently.
Each frame has a frame tag to indicate. The horizontal frame is defined by the row attribute of the frame tag, and the vertical attribute is defined by the column attribute of the frame tag in the HTML document. The same window in one frame might display a static banner, a second navigation menu, etc.
The frame tag has been deprecated in HTML5, instead we use CSS properties.
Syntax of Frames
In HTML, there is no end tag for the <frame> tag. When we use frames in a webpage, we use <frameset> tag instead of a <body> tag. Using <frameset> is how we instruct the webpage to divide it into frames The <frame> tag defines which HTML document should open as frame.
<frame src = "URL" >
The attribute cols take the value in pixels and they help at specifying the number and size of columns in a frameset. Similarly, the attribute rows take the value in pixels and they help at specifying the number and size of rows in a frameset.
<cols =”10%,80%,10%”> <rows =”10%,80%,10%>
There are few important attributes of the <frameset> and we discuss it in the next lesson.