Do you listen to me for the discussion of WEB standards?

Source: Internet
Author: User

I haven't written my own blog for a long time. Today I have a hard time writing my next blog post, but I want to write it for a long time. It mainly targets new users and friends or children's shoes who design the web Front-end. Veteran, Please bypass it because you are too oily and can have your own solutions to any problems you encounter. In addition, you have gone deep into your own ideas, I can't rely on an article to change some opinions, or I already know this immature article, so you can bypass it, don't spray it, or give your opinion to the landlord, thank you for your cooperation!

Nowadays, many people regard div + css as a standard web layout (You may say this is not all about web standards, but you have not implemented it to take action, in the subconscious, this is true. How can we fundamentally change and change our consciousness errors, or I used to consciously use div + css as the (MY web) standard. How can I reverse this idea.

I won't talk about div anymore. I can think of box only when I look at it. It is actually a block. It is a box (a box containing content )!

First, let's first understand what css is:

① The full name of css is Cascading Style Sheet (CSS), also known as "Style Sheet )", it is used for webpage style design. ② Cascading Style Sheets allow users to effectively control the appearance of webpages. Using Cascading Style Sheets, you can expand the ability to precisely specify the location, appearance, and create special effects of webpage elements. ③ It can be created and called externally, or directly written into the webpage to control the style or effect displayed on the webpage through the browser.

Second, let's take a look at div + css:

DIV + CSS is one of the commonly used terms in website standards (or "WEB standards"). div + css is a webpage layout method, this web page layout method is different from the table Positioning Method in the traditional HTML web page design language, which can separate the content and presentation of web pages. XHTML is The abbreviation of The Extensible HyperText Markup Language. Based on Extensible Markup Language (XML), XHTML is a new language optimized and improved based on HTML. It is designed based on XML applications and powerful data conversion capabilities, adapt to more network applications in the future. In the XHTML website design standard, table positioning technology is no longer used, but various positioning methods are implemented by using DIV + CSS.

Third, let's take a look at what is web standards

Official definition: WEB standards are not a set of standards. A webpage consists of three parts: Structure, Presentation, and Behavior ). The corresponding standards are also divided into three aspects: the standard structured language mainly includes XHTML and XML, the standard expression language mainly includes CSS, the behavior standard mainly includes Object Model (such as W3C DOM), ECMAScript and so on. Most of these standards are drafted and released by W3C, and some are standards developed by other standards organizations, such as ECMAScript standards of ECMA (European Computer Manufacturers Association.

This definition is analyzed: "the WEB is not a standard, but a series of standard sets." It is not a small part. The "div + css is the WEB Standard" is broken down. Next: "Structure" refers to div, p, h1, h2, h3, h4, ul, li? NO! It also includes table, dt, dl, strong, font, I and other structural elements! Presentation is a visible component! "Behavior" refers to the selection and attributes of some styles, such as the use of margin, padding, float and so on in css! For the rest, we can see that the official definition is "Main" and "one of them". That is to say, the WEB standard is not div + css, But div + css is one of the WEB standards, it is quite common. The use of table and other labels does not mean that it is not a WEB standard.

In the market, some customers always use div + css as the standard to require us to say that this is the most optimal way (they do not know where to query it). It is undeniable that, div + css does have great advantages, but it cannot use a table on the whole site. div + css does not represent all-powerful. Sometimes it is hard to meet such customers, I don't know how to explain it to them. At the beginning, I was very eager to explain it for a long time. I would just sigh when they looked blank! The boss asked us to do what they wanted. It would not waste much time or optimization! Finally, one customer saw that there was really no table in the source code to report to their boss with great enthusiasm! What I want to talk about here is that, for the customers who make the site, you should take more professional suggestions and they will help you do well. After all, no one will break their own signboard, your website went online and was laughed at by our peers! We also hope that new users will break away from div + css, which is a strange WEB Standard circle!

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.