Beginners learn how to do web pages and JavaScript

1. The difference between a website and a web page:
any address entered in the address bar of the browser is a website. When the website is opened, there are many links and pages are opened. Each page is a web page, so it can be said that if the website is A book, then a webpage is every page in it, but the website is not exactly equivalent to a book, because some websites have only one webpage. This kind of website is called a single-page website, which is mainly used for advertising. I believe everyone has seen it. . To add, the websites we often talk about are generally top-level domains.
2. JavaScript:
computer language:
machine language: composed of "0" and "1".
The programming language is similar to the "language" of human language to control the computer and let the computer do things for us.
JavaScript ("JS" for short) is a lightweight, interpreted or just-in-time compiled programming language with function first. Although it is famous as a scripting language for developing Web pages, it is also used in many non-browser environments. JavaScript is based on prototype programming, a multi-paradigm dynamic scripting language, and supports object-oriented, imperative and declarative (such as Functional programming) style. Its composition: Insert picture description here
main function 
1. Embed dynamic text in HTML page.
2. Respond to browser events.
3. Read and write HTML elements.
4. Verify the data before it is submitted to the server.
5. Detect the browser information of the visitor.
Control cookies, including creation and modification, etc.
6. Server-side programming based on Node.js technology.

Guess you like

Origin blog.csdn.net/qq_52006804/article/details/114207823