Any way of using frames in HTML5?


The frameset attribute deprecated in HTML, but you can still use it. The top-level parent doc now uses

Example

XHTML and the frame uses HTML5.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html>
   <head>
   </head>
   <frameset framespacing = "0" rows = "250,*" frameborder = "0" noresize>
      <frame name = "top" src = "https://qries.com" target = "top">
      <frame name = "main" src = "new.html" target = "main">
   </frameset>
</html>

Updated on: 27-Jan-2020

126 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements