Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

It's good to use framesets in html/php pages?

Tags:

html

php

frame

I'm new in php and html scripting, so I would like to know if someone could give me an advice about how to set up my page structure.

I need to create a page with an header and a footer, a left-page menu and a main section where the contents of the site are displayed.

I thought about a frameset like this:

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Frameset//IT” “http://www.w3.org/TR/html4/frameset.dtd”>

<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1?>
<title>Framesets</title>
</head>

<frameset rows=”20%,70%,10%”>
<frame src=header.php>
     <frameset cols=”20%,80%”>
     <frame src=menu.php>
     <frame src=main.php>
    </frameset>
 <frame src=footer.php>
</frameset>
<noframes></noframes>
</html>

When someone click on a link displayed on the menu.php section, only the main.php section will be called with different options (or I can call different php pages, one per choice), but I'm not sure this is the best solution, can anyone give me some advices?

(sorry for my english!)

like image 940
Wallkan Avatar asked Feb 02 '26 12:02

Wallkan


1 Answers

No, it's not good.

The use of HTML framesets has been deprecated and is no longer valid in recent versions of HTML.

You can still use <iframe> if you need this kind of feature, but in general what you're trying to do is a very very out-dated way of writing web pages.

like image 175
Spudley Avatar answered Feb 05 '26 04:02

Spudley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!