What is Div + CSS?
I think many of my friends may not understand it, but I still want to write my own understanding, which may help those who want to learn it, or friends who do not know how to get started.
When designing a webpage, we usually use table to layout the entire page. Now we can use Div + CSS to achieve layout. For example, we can design a page header, subject, and footer. A webpage with the upper, middle, and lower structures can define several divs for implementation, as shown below:
<Div id = "pagebody">
<Div id = "pageheader">
</Div>
<Div id = "pagecontent">
</Div>
<Div id = pagefooter ">
</Div>
</Div>
Such a page layout has been designed. The next step is to design CSS styles, such as the width, header, and footer of a webpage.
CSS design can be separated from pages and stored in separate files. Of course, all webpages can use styles in CSS files.