HTML web pages can be divided into two or more categories. Think of the matter of the device, as different devices can be given to each device, and each page can be loaded into separate pages.
Suppose you have 3 frames on one page, you can reload any one (without loading the whole page). Frameset tells it if there are several frames on one page. <frameset> </ frameset> is placed inside <frameset> </ frameset>. For example, save as frame_example.html and look at lines 9, 10 and 11, each one is a frame. In the first frame, the top.html named another full HTML page has been created and inserted. In the latter two, we have given two pages named middle.html and bottom.html. Now whenever you open frame_example.html, this page will display contents of top.html, middle.html and bottom.html. Meaning 3 pages inside a page will show.
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <html> <head> <title> ashik Frame Tutorial </title> </head> <frameset rows="200,100,*"> <frame src="/top.html"/> <frame src="/middle.html"/> <frame src="/bottom.html"/> <noframes> <body> This site uses a technology called frames. Unfortunately, your browser does not support this technology. Please upgrade your browser and visit us again! </body> </noframes> </frameset> </html>
==> <noframes> </ noframes> is given if your browser frame does not support its inside message.
==> <frame src = “/ top.html” /> Here the link to the page on the src is correct.
==> <frameset rows = “200,100, *> It is meant that the first frame (top.html) will be 200 pixels higher then the next 100 and the rest will take the remaining part (* symbol).
** HTML 5 does not support frames, so do not discuss more about the frame. Gradually, its usage has been rising.
** In the above example, see XHTML DOC type instead of HTML 5.
** Because of the removal of the frame in HTML 5, a tag named iframe is used for all these purposes.
With an iframe or inline frame, an entire section can be inserted into an HTML document where different web pages are displayed.
<!DOCTYPE html> <html> <head> <title> Ashik Frame Tutorial </title> </head> <body> <iframe width="100%" src="http://ashik.pw"> Your browser does not support iframe tag </iframe> </body> </html>
You can also give a local file in the src attribute, I have given a URL. Many more attributes can be used, but most are not supported in HTML 5. HTML 5 supports the two used above (src and width) as well as the following
name: Iframe can be named. Such as
<iframe name="ashik.pw" width="100%" src="http://ashik.pw"> Your browser does not support iframe tag </iframe>
If seamless = “seamless”, iframe will appear as if it is part of this page
<iframe name="ashik.pw" width="100%" src="http://ashik.pw" seamless="seamless"> Your browser does not support iframe tag </iframe>
srcdoc = “html content” The value of this attribute can be attributed to the HTML element so that it shows in the iframe.