The most accurate web design idea is to divide the web page into three levels, namely: structure layer (HTML), presentation layer (CSS), and behavior layer (Javascript ).
html What does css js do?
1. What is HTML (Hyper Text Markup Language)? HTML is a language used to describe web pages.
2. CSS (Cascading Style Sheets), the style defines how to display HTML elements, the syntax is:
selector {property:value} (选择符 {属性:值})
3. JavaScript is a scripting language, and its source code is sent to The client does not need to be compiled before running. Instead, the character code in text format is sent to the browser for interpretation and execution by the browser.
For a web page, HTML defines the structure of the web page, CSS describes the appearance of the web page, and JavaScript settings. A very classic example is that HTML is like a person’s bones and organs, and CSS is like human skin. With These two constitute a vegetative person. With the addition of JavaScript, the vegetative person can respond to external stimuli, think, exercise, give himself plastic surgery and make-up (change CSS), etc., and become a living person.
If HTML is the body, CSS is the surface, and Javascript is the soul. Without Javascript, HTML CSS is a vegetative state. Without Javascript and CSS, it is a disfigured vegetative state.
If HTML is the architect, CSS is the decoration, and Javascript is the magician.
The above is the detailed content of What does html css js do?. For more information, please follow other related articles on the PHP Chinese website!