1. System structure:
① B/S architecture: Browser/Server ( browser/server interaction.)
- Browser supports languages: HTML, CSS, JavaScript; S is the server The languages supported by the end server are: C, C++, Java, etc.
- What are the advantages and disadvantages of the B/S architecture system? Advantages: Easy to upgrade, just upgrade the server code, low maintenance cost. Disadvantages: slow speed, bad experience, not cool interface
- Most enterprises use B/S architecture
- Representatives of B/S architecture systems include: Jingdong, Baidu, Tmall, etc.
② C/S architecture: Client/Server (interaction form of client/server.)
- What are the advantages and disadvantages of C/S architecture?
- Advantages: fast speed, good experience, interface Cool (entertainment is mostly C/S architecture)
- Disadvantages: Upgrading is troublesome and maintenance costs are high.
- The system representatives of C/S architecture are: QQ, WeChat, Alipay, etc.
2. HTML overview
① What is HTML? ② How to develop HTML? ③ How to run HTML?
- ① HTML: Hyper Text Markup Language (Hypertext Markup Language)< /span>
Consists of a large number of tags , each tag has a start tag and an end tag.
•Hypertext: pictures, sounds, videos, etc.
- ② For HTML development, just use a normal text editor and create an extension Is .html or .htm
• Editors include: HBuilder, vscode, etc.
③ Open the HTML file directly with the browser to run
④ Who made HTML?
- ④ W3C: World Wide Web Consortium
W3C has developed the HTML specification: each browser produces Manufacturers follow the rules. HTML will also write code according to the specification
•The current highest version of the HTML specification is: HTML5.0, referred to as H5 span>
•We are now mainly learning HTML4.0 (basic usage)
- In order to facilitate the development of Chinese web front-end programmers, a large number of help documents are provided . Provide convenience for development.
w3school: comes first Yes, nothing to do with W3C
•w3cschool: Appeared later, not related to W3C
W3C has formulated many specifications: HTML/XML/http protocol/ https protocol...
3. The first HTML
4. Basic tags
- p: paragraph mark
- h1~h6: title word, the same as the title word of word
- br: line break mark (unique mark)
- hr: horizontal line (single mark)
- color: horizontal line color
- width: horizontal line width (px and %)
- pre: reserved format
- del: delete words
- ins: insert word (with underline)
- b: bold font
- i: Italics
- sup: superscript
- sub: Subscript
- font: font label
- color: font color
- size: font size (1~7)
Page renderings:
5. Entity symbols: In order to avoid conflicts with labels, entity symbols are required
- <:<
- >:>
- Space:
- Note: Press multiple space keys in html, only one space will be displayed in the webpage.
6, HTML table
- table: table
- tr: row
- td: column
- th: column (bolder and centered than td)
- Merge rows: rowspan (one grid occupies two positions)
- Note: When rows are merged, delete the following cells
- Merge columns: colspan (one cell occupies two positions)
- Note: When col is merged, there is no requirement to delete which one
7, thead, tbody, tfoot tags
- < span style="color: #121212; --tt-darkmode-color: #A3A3A3;">thead, tbody, and tfoot are not necessary, which is convenient for later JS writing.
8. Body background color and background image
- bgcolor: background color
- background: background image
- The background image is above the background color
9, img tag
- src: the path of the image
- Only set the width, the height will be proportionally scaled
- Only set height, no effect
- title: information displayed when the mouse hovers
- alt: Set the prompt message displayed when the picture fails to load
10. Hyperlink or hot link
- href: hot references hot Quote;
- must be followed by a resource address .
- The path behind can be an absolute path or It is a relative path, which can be the path of a certain resource on the network.
- target:
- _blank: new window
- _self: current window (default)
- _top: top-level window
- < span style="color: #121212; --tt-darkmode-color: #A3A3A3;">_parent: parent window
< strong>The function of the hyperlink:
A request can be sent from the browser to the server through a hyperlink.
11. The concept of request and response
- request: The browser sends data to the server (request)
- B --》S
- response: The server sends data to the browser (response)
- S--》B
12, list
- Yes Sequence table: ol
- type: 1, A , a, I, i
- Unordered list : ul
- type: circle (○), square (□), disc (●)
评论列表(196条)
测试