Web standard learning separates understanding structure from expression

Time:2021-11-26

When it comes to web standards, something is always mentioned, that is, the importance of the separation of structure and presentation.

Understanding the differences between structure and presentation can be difficult at first, especially if you’re not used to thinking about the semantic structure of a document.

However, it is important to understand this, because when the structure and presentation are separated, it is easy to control the presentation with CSS documents.

Structure consists of the main part of the document, plus semantic and structured tags.

Performance is a style you give content. In most cases, presentation is what a document looks like, but it can also affect how a document “sounds” — after all, not everyone uses an image browser.

Separate the structure and performance as much as possible.

In theory, you should use an HTML document to save the content and structure, and a CSS document to control the performance of the whole document.

Nowadays, it is still common for websites that are not separated from structure.

So we just started to learn to form a good habit of putting them in separate files. XHTML files can link and share external CSS and JavaScript documents

Recommended Today

Vue、Three. JS implementation panorama

1、 First, we need to create a Vue project This paper mainly records the process of building panorama in detail, so building Vue project is not described too much. 2、 Install three js npm install three –save npm install three-trackballcontrols –save npm install three-orbit-controls –save npm i three-obj-mtl-loader –save npm i three-fbx-loader –save npm i […]