Full width home advertisement



Post Page Advertisement [Top]

What are HTML Frames?

HTML frames are used to split your web pages into two or more segments so that each segment loads separately within the page document. 

Frame set can be defined as set of frames in the same browser window. Frames can be tabled into rows and columns.

Why Frames use is not advisable

1. Smaller devices cannot properly manage frames often because their screen size are not wide enough to contain it.

2. Page display is not consistent with frames considering different computers with different screen resolution.

3. The browser's back button doesn't work properly with frames set.

4. Many browsers do not support frame technology.

How to Create Frames in HTML?

The <frameset> tag specifies how to divide the window into frames. The rows attribute of <frameset> tag defines horizontal frames and cols attribute defines vertical frames. 

Below is an example to create three horizontal frames:

<!DOCTYPE html>



<title>HTML Frames</title>


<frameset rows="10%,80%,10%">

<frame name="top" src="/html/top_frame.html" />

<frame name="main" src="/html/main_frame.html" />

<frame name="bottom" src="/html/bottom_frame.html" />



Your browser does not support frames.





The use of CSS is more advisable. CSS can handle page division without having issues with size and small device compatibility

No comments:

Post a Comment

Bottom Ad [Post Page]

| Designed by Colorlib