CSS page layouts avoid abusing div elements

Source: Internet
Author: User
Tags html tags

Article Introduction: CSS page layout should avoid abusing DIV elements that have been advocated by us, with the appropriate HTML tags organization document is the base of CSS page layout?? /FONT>

CSS page layout should avoid abusing DIV element has been advocated by us, and organizing documents with appropriate HTML tags is the basis of CSS page layout.

The use of DIV and span elements in a page is a new problem and we can easily use them too much. The necessary and reasonable use of Div can significantly enhance the structure of the document. This is what webjx.com has been advocating.

If you look at your HTML documents and find a lot of div and span, you have to look at the problem in a different light, is there an abuse situation?

Are there better markers to replace them? If H1 can better represent the tagged content, then you have to give up p or span to define it.

Perhaps this is a contradiction, we are also more difficult to grasp how to use them correctly, or perhaps we simply do not have a clear answer.

But there's a point to be made that we should make the document logically clear and easier to apply styles.

We can just look at the div as a container, or as part of the document's composition.

We use too many containers, which is not a sensible model.

A properly positioned container can make the entire document very organized.

Related Article

Cloud Intelligence Leading the Digital Future

Alibaba Cloud ACtivate Online Conference, Nov. 20th & 21st, 2019 (UTC+08)

Register Now >

Starter Package

SSD Cloud server and data transfer for only $2.50 a month

Get Started >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.