Home > Web Front-end > HTML Tutorial > The main methods for page layout design in web programs are tables and divs. Let's try to describe the two methods_html/css_WEB-ITnose

The main methods for page layout design in web programs are tables and divs. Let's try to describe the two methods_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:09:52
Original
1203 people have browsed it

rt, a little more detailed. Thank you


Reply to the discussion (solution)

1. Flexibility: div is much more flexible than table. Many attributes in the table are not so easy to control, and they are highly related. If you use div, you can easily control each html element;
2. File size: To make the same page, the file layout using div is larger The file is smaller than the table layout, which can speed up the loading of web pages and is beneficial to SEO;
3. The table can be used to fill in data, but the div is not so professional;
4. The div layout requires a certain understanding of CSS , otherwise you won’t be able to create a page. If you don’t know the table layout and CSS, you can create a page that is not very rubbish.

Any web page needs DIV and TABLE together for layout. How to use the two together depends on what effect you want. It is impossible to simply use one to lay out the page.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template