When discussing Web standards, one thing that always comes up is the importance of separating structure from presentation. Understanding the difference between structure and presentation can be difficult at first, especially if you are not used to thinking about the semantic structure of documents. However, it is important to understand this because, when structure and presentation are separated, it is easy to control presentation using a CSS document. The structure consists of the main body of the document, plus semantic and structural tags. Presentation is the style you give to your content. In most cases, presentation is how a document looks, but it can also affect how a document "sounds" - after all, not everyone uses a graphical browser. Separate structure and presentation as much as possible. In theory, you should use one HTML document to store content and structure, and one CSS document to control the presentation of the entire document. It is still common today to have websites where presentation and structure are not separated. So when we first start learning, we should develop a good habit of putting them in separate files. XHTML files can link and share external CSS and JavaScript documents. |
<<: Use CSS to achieve circular wave effect
>>: Docker images export and import operations
I'm currently learning about front-end perform...
Table of contents Directory Structure bin directo...
background When we talk about transactions, every...
Test the efficiency of deleting a large number of...
This article shares the specific code for JavaScr...
In web front-end development, it is inevitable to ...
drop table Drop directly deletes table informatio...
query_cache_limit query_cache_limit specifies the...
1. Execute the select statement first to generate...
Table of contents Installation Environment Descri...
This article example shares the specific code of ...
Require The div under the body is vertically cent...
Preface Programming languages usually contain v...
There are three types of virtual hosts supported ...
This article shares the specific code for JavaScr...