In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the benefits and significance of DIV+CSS, the article is very detailed, has a certain reference value, interested friends must read it!
The full name division of Div means to "distinguish" the way you use DIV in the same way as other tag methods.
If you use DIV alone without adding any CSS, then its effect and use in the web page
It's the same.
DIV itself is container. You can embed not only table but also text and other HTML code.
CSS is the abbreviation of CascADIng style Sheets, which is translated into Chinese as "cascading style sheet". When making the home page, CSS technology is adopted, which can effectively control the layout, font, color, background and other effects of the page more accurately. As long as you make some simple changes to the corresponding code, you can change the appearance and format of different parts of the same page, or pages with different pages.
Surfing the Internet, whether you use Internet Explorer or Netscape Navigator, you are dealing with CSS almost all the time, and pages that have not used CSS on the Internet may be difficult to find. No matter what tool software you use to make web pages, you are using CSS intentionally or unintentionally. Good use of CSS can make your web page more concise, the same content of the web page, some people make out there are dozens of KB, while the master makes only a dozen KB.
Advantages of the Div+CSS standard:
1. Greatly reduce the page code, improve the page browsing speed and reduce the cost of bandwidth
two。 Clear structure, easy to be searched by search engines, naturally optimized seo
3. Shorten the revision time. You can redesign a site with hundreds of pages by simply modifying a few CSS files.
4. Strong font control and typesetting ability. CSS is much better at controlling fonts than bad FONT tags. With CSS, we no longer need to use FONT tags or transparent 1 px GIF images to control headings, change font colors, font styles, and so on.
5.CSS is very easy to write. You can write CSS as easily as you can write html code.
6. Improve ease of use. You can use CSS to structure HTML, for example:
Tags are only used to control paragraphs, heading tags are only used to control headings, table tags are only used to represent formatted data, and so on. You can add more users without having to build a separate version.
7. It can be designed at once and released anywhere. Your design is not only for web browsers, but can also be published on other devices, such as PowerPoint.
8. Better control of the page layout. Needless to say.
9. The performance is separated from the content. By stripping out the design section and putting it in a separate style file, you can reduce the possibility that future pages will be invalid.
10. It is more convenient for search engines. Replace nested tags with HTML that contains only structured content, and search engines will search your content more effectively and may give you a higher ranking.
11.Table layout is not very flexible, you can only follow the table tr td format. And div, you can div ul li, you can ol li, you can ul li. But the standard grammar is written in an orderly manner.
twelve。 In addition, if you are not a master of javascrput, you don't have to write ID, just use class. When the client programmer finishes writing the program and needs to adjust, you can use his ID to control it.
In 13.Table layout, there will be a lot of junk code, and some decorated styles and layout code will be mixed together, which is not conducive to intuition. On the other hand, Div can better reflect the separation of style and structure, and the reconstruction of structure is strong.
14. Can be used in almost all browsers.
15. In the past, some functions that had to be achieved through image conversion can now be easily achieved with CSS, so that pages can be downloaded more quickly.
16. Make the font of the page more beautiful, easier to arrange, and make the page really pleasing to the eye.
17. You can easily control the layout of the page.
18. You can update the style and format of many web pages at the same time, without having to update them page by page. You can use a CSS file to control all the page styles on your site, and as long as you change the corresponding lines in this CSS file, all pages of the entire site will change accordingly.
These are all the contents of the article "what are the benefits and significance of DIV+CSS". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.