Web standards learning to understand the separation of structure and presentation

Web standards learning to understand the separation of structure and presentation
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

Recommend

Let's talk about the characteristics and isolation levels of MySQL transactions

The Internet is already saturated with articles o...

This article will show you how to use Vue 3.0 responsive

Table of contents Use Cases Reactive API related ...

Solution to the problem "Table mysql.plugin doesn't exist" when deploying MySQL

Today I deployed the free-installation version of...

Summary of the dockerfile-maven-plugin usage guide

Table of contents pom configuration Setting.xml c...

Ubuntu16.04 installation mysql5.7.22 graphic tutorial

VMware12.0+Ubuntu16.04+MySQL5.7.22 installation t...

How to use MySQL common functions to process JSON

Official documentation: JSON Functions Name Descr...

javascript Blob object to achieve file download

Table of contents illustrate 1. Blob object 2. Fr...

How to bind Docker container to external IP and port

Docker allows network services to be provided by ...

Comparing Node.js and Deno

Table of contents Preface What is Deno? Compariso...

How to clean up Alibaba Cloud MySQL space

Today I received a disk warning notification from...

How to install MySQL under Linux (yum and source code compilation)

Here are two ways to install MySQL under Linux: y...

Two ways to enable firewall in Linux service

There are two ways: 1. Service method Check the f...