Question:

Is tableless and div same thing?

by Guest32864  |  earlier

0 LIKES UnLike

I want to know in html tableless and div is same thing or different. As per my knowledge both is same this question is asked in one of the HCL interview.. Kindle tell me more about same ...

 Tags:

   Report

2 ANSWERS


  1. Yes in tableless design we design without tables but with divs. Each div defines a block of html. Usually you have something like this:

    <html>

         <body>

              <div id="wrapper">

                  <div id="header"></div>

                  <div id="navigation"></div>

                  <div id="main_content"></div>

                  <div id="footer"></div>

             </div>

        </body>

    </html>


  2. Although we sometimes refer to a pure css styled site as 'html tableless', css-styled sites are sometimes called 'liquid layouts', 'div layouts' or pure css layouts.

    Css layouts are preferred because all the styling code can be placed in one css "page" that controls the elements throughout the entire site.

    HTML tables are static, meaning each occurs one time, so if you want 5 identical tables on a page, you have to code 5 times the same thing for each table. With CSS, you can declare all the style details on the css page, give it a class name, then use the code over and over every time the element appears on the site, even if it appears 1000 times.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.