Unit 2HTML Frames Are Obsolete in HTML5
Unit 2HTML Frames Are Obsolete in HTML5
• Each frame has it’s own contents and the content in one don’t spill
into the next.
• An iframe, on the other hand, embeds a frame directly inline with the
other elements of a webpage.
• While both frames and iframes perform a similar function –
embedding a resource into a webpage – they are fundamentally
different.
• Frames are layout-defining elements.
• Iframes are a content-adding elements.
• The Problem with Frames
• Usability challenges: With the rise in popularity of mobile devices and tablets
with small displays it’s more important than ever that websites offer multiple
views which change based on the size of the device viewport. While frames
can be manipulated to provide a certain degree of responsiveness, they are
simply not well-suited to creating responsive websites.
• Accessibility challenges: Screen readers and other assistive technologies have
a very hard time understanding and communicating websites that use frames.
• In addition to the accessibility and usability issues created by frames, the
trend within web design is to separate the content of a webpage from its
presentation.
• Content should be added and defined by markup such as HTML.
• Presentation should be manipulated with languages like CSS and JavaScript.
• Using frames is primarily about creating a specific look and layout, a
presentation task that should really be handled with CSS.
HTML - Iframes