PDA

View Full Version : What is the difference between <div> and <frame> ?



Sankara Vignesh
01-22-2018, 07:07 AM
A <div> is a generic container element for grouping and styling, whereas a creates divisions within a web page and should be used within the tag. The use of and are no longer popular and are now being replaced with the more flexible <iframe>.

blackmagicislam
01-24-2018, 04:32 AM
Div tag is a generic element for grouping and styling of HTML
whereas, frame tag is used in inline frame in HTML

sindhusmile
01-26-2018, 02:25 AM
<frame> creates divisions within a web page and <div> is a generic container element for grouping and styling.

24x7servermanag
01-26-2018, 03:46 AM
<div> tag is the division or section of the HTML document. You can define the specific format to the elements defined in the div tag in CSS so when you would like to apply the same style to that particular element then you just need to call that div tag.

<frame> tag is specifically used with the HTML5. It has the particular frame/set to the frameset.

<div> tag is just for the grouping in the styling while <frame> used to sub divide the page.

JigsSarma
01-26-2018, 05:48 AM
Div is a generic container element for grouping and styling and Frame creates divisions within a web page and should be used within the <frameset> tag.

smmexpertss
02-22-2018, 03:17 PM
This means that one page has no content on it, but rather tells the browser which web pages you would like to open. A <div> is a generic container element for grouping and styling, whereas a <frame> creates divisions within a web page and should be used within the <frameset> tag.

praveenitech40
02-23-2018, 03:05 AM
<frame> creates divisions within a web page and <div> is a generic container element for grouping and styling.

sanjalisharma89
05-15-2018, 07:57 AM
A <div> is a generic container element for grouping and styling, whereas a<frame> creates divisions within a web page and should be used within the <frameset> tag. The use of <frame> and <frameset> are no longer popular and are now being replaced with the more flexible <iframe>, which has become popular for embedding foreign elements (ie. Youtube videos) into a page.

Sherin
09-03-2020, 10:29 PM
<DIV >

Definition and Usage

The <div> tag defines a division or a section in an HTML document.

The <div> tag is used to group block-elements to format them with CSS.

A <div> is a generic container element for grouping and styling.

<DIV> Example

<!DOCTYPE html>

<html>

<html>

<head>

<style>

div {

display: block;

}

</style>

</head>

<body>

A div element is displayed like this:

<div>This is some text in a div element.</div>

Change the default CSS settings to see the effect.

</body>

</html>

<FRAME>

Definition and Usage

The <frame> tag is not supported in HTML5.

The <frame> tag defines one particular window (frame) within a <frameset>.

Each <frame> in a <frameset> can have different attributes, such as border, scrolling, the ability to resize, etc.

<FRAME> Example

<!DOCTYPE html>

<html>

<frameset rows="25%,*,25%">

<frame src="frame_a.htm">

<frame src="frame_b.htm">

<frame src="frame_c.htm">

</frameset>

</html>

Saravanan28
09-19-2020, 07:25 AM
A <div> is a generic container element for grouping and styling, whereas a <frame> creates divisions within a web page and should be used within the <frameset> tag.