How To Put This Code Into A Table?
Solution 1:
<table><!DOCTYPE HTMLPUBLIC"-//W3C//DTD HTML 4.01 Frameset//EN""http://www.w3.org/TR/html4/frameset.dtd"><html><head><title>
Prueba
</title></head><framesetrows="56px, *, 50px"border="0"framespacing="0"frameborder="NO"><frameclass="header"src="header.html"><framesetcols="450px, *"border="0"framespacing="0"frameborder="NO"><framesetrows="*,150px"border="0"framespacing="0"frameborder="NO"><frameclass="frame1"scrolling="auto"src="search_results.html"><frameclass="frame2"scrolling="no"src="info.html"></frameset><frameclass="frame3"scrolling="no"src="map.html"></frameset><frameclass="footer"scrolling="no"src="footer.html"></frameset></html></table>
There.
But serious. You don't want to use tables for layouting. Neither should you use frames.
The way to go would be to use divs. Or the new HTML5 elements.
Some new elements added to HTML are:
Sections elements
- section
- nav
- article
- aside
- hgroup
- header
- footer
- address
Grouping elements
- figure
- figcaption
Some benefits when not using tables for your layout:
- tables render slower
- tables don't work too well when using a fluid design
- tables are not the correct semantic elements to use for layout
- tables are for tabular data
- tables aren't really flexible if you want to change your layout at some point
Please note that when you want to use the new HTML5 elements you should set the correct doctype:
<!DOCTYPE html>
Also note that 'older' browser (and IE) don't know the new elements. To fix this issue you could add this simply JS script in the head of the document:
<script>document.createElement('header');
document.createElement('nav');
document.createElement('section');
document.createElement('article');
document.createElement('aside');
document.createElement('footer');
document.createElement('time');
</script>
What you would get is something like the following:
CSS
#body { width: 960px; }
aside { width: 450px; float: left; }
.content { margin-left: 450px; }
HTML
<divid="body"><header><h1>Your header</h1></header><aside><p>Aside</p></aside><divclass="content"><h2>Title</h2><p>Some text</p></div><footer><p>Your footer</p></footer></div>
Demo
Solution 2:
You cannot replicate the functionality of frames using tables. If you have a reason to rebuild the site, it is best to start from scratch, including decisions on functionality, general layout, and server-side technology used.
Post a Comment for "How To Put This Code Into A Table?"