Results 1 to 10 of 10
  1. #1
    Senior Member
    Join Date
    Apr 2015
    Posts
    134

    Lightbulb What is the difference between <div> and <frame> ?

    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>.

  2. #2
    Registered User
    Join Date
    Apr 2017
    Posts
    353
    Div tag is a generic element for grouping and styling of HTML
    whereas, frame tag is used in inline frame in HTML

  3. #3
    Member
    Join Date
    Nov 2017
    Location
    India
    Posts
    36
    <frame> creates divisions within a web page and <div> is a generic container element for grouping and styling.

  4. #4
    Registered User 24x7servermanag's Avatar
    Join Date
    Jul 2017
    Location
    India
    Posts
    1,020
    <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.
    Server Management Company
    India's Leading Managed Service Provider | Skype: techs24x7
    Cpanel Technical Discussions - Lets talk !

  5. #5
    Registered User
    Join Date
    Jan 2018
    Posts
    28
    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.

  6. #6
    Senior Member
    Join Date
    Nov 2015
    Location
    United Kingdom
    Posts
    241
    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.

  7. #7
    Registered User
    Join Date
    Jan 2018
    Posts
    546
    <frame> creates divisions within a web page and <div> is a generic container element for grouping and styling.

  8. #8
    Senior Member
    Join Date
    May 2015
    Location
    UK
    Posts
    260
    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.

  9. #9
    Registered User
    Join Date
    Mar 2019
    Location
    Ahmedabad
    Posts
    180
    <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>

  10. #10
    Senior Member
    Join Date
    Nov 2018
    Posts
    1,348
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.