I started learning web standards at the beginning of last year, and I have gained some experience over the past two years. I recently changed jobs and am just free at home, so I wrote something to share with everyone.
1 Understanding of web standards and W3C XHTML specifications
According to customary understanding, these two concepts seem to refer to the same thing (these things we discuss in this edition) Advanced theory"^_^). But I think, in fact, from a technical point of view, these two things have almost no correlation at all. In short, web standards are to independently implement the structure, performance and behavior of the page. More commonly speaking, it is the popular language "div+css" in today's recruitment. However, no version of W3C XHTML places restrictions on the concept of web standards. Obviously, we can use xhtml 1.1 to write a table-positioned web page. At this point, you may think that I am talking a lot of nonsense. But with any technology, you can only use it correctly when you have a clear enough understanding of the basic concepts. Let me talk about the two misguided paths of today's Web standard applications from the following two aspects:
The first situation is very simple. I think that as long as XHTML+CSS is used, it is a Web standard. The page is full of classes and ids. Feel free to define separate classes for every detail. The difference between such a page and traditional HTML is that there is an extra "/" in the img tag. In fact, it's better to go back to traditional HTML. At least I can use font easily instead of always looking up the style sheet like a dictionary. Another, more subtle, casual use of CSS I'll talk about later.
I think the second situation is more difficult to understand, that is, trying to use various complicated div nesting and css statements to achieve the performance you want. A very simple example is in a post I just saw " Rounded corners on the page without cutting the image ". First of all, I want to make sure that this idea is really good, using CSS function to "draw" the rounded corners. To do this, the designer must add a large section of code as follows in the corresponding position:
However, this seriously violates the basic concept of Web standards - the separation of structure and performance . Because it places the code used to control the performance of the web page in the structural document. Maybe you would say that it actually puts the real performance code in CSS. But I think this is a stolen concept. Because the above b tags have nothing to do with the structure of the web page, they are all empty tags. That is, it doesn't exist to put something where the document structure requires it. So they are just junk code for the document structure.
Another example may be more subtle. I have seen an article on alistapart.com before about how to implement three-way columns on a web page. The principle is probably to use three or four divs to nest each other. I think this is also a violation of Web standards. Because the order in which these div tags are placed in the code is not simply for structural needs, but for the performance of the web page.
Of course, I admit that the above point of view is overkill to a certain extent (but on the other hand, if you have to implement non-picture rounded corners, isn't it also overkill, haha). Sometimes structure and performance are not so easily separated. In order to achieve some rich performance, we have to let the structure adapt (think about the use of
Finally, I want to state that I am not saying "non-picture rounded corners" is meaningless or wrong. I also admire the author's intelligence and inspiration. I think this kind of technical research is just like using CSS to draw the national flag before, and it is very helpful for mastering CSS technology. However, its use should be as limited as the CSS flag and should not be adopted in practical applications. Because it violates the basic tenets of web standards.

For a while, iTunes was the big dog in podcasting, so if you linked "Subscribe to Podcast" to like:

We lost Opera when they went Chrome in 2013. Same deal with Edge when it also went Chrome earlier this year. Mike Taylor called these changes a "Decreasingly

From trashy clickbait sites to the most august of publications, share buttons have long been ubiquitous across the web. And yet it is arguable that these

In this week's roundup, Apple gets into web components, how Instagram is insta-loading scripts, and some food for thought for self-hosting critical resources.

When I was looking through the documentation of git commands, I noticed that many of them had an option for . I initially thought that this was just a

Sounds kind of like a hard problem doesn't it? We often don't have product shots in thousands of colors, such that we can flip out the with . Nor do we

I like when websites have a dark mode option. Dark mode makes web pages easier for me to read and helps my eyes feel more relaxed. Many websites, including

This is me looking at the HTML element for the first time. I've been aware of it for a while, but haven't taken it for a spin yet. It has some pretty cool and


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment