JavaWeb 1-browser technology, javaweb-Browser
JavaWeb 1-browser technology 1. HTTP 1.1 HTTP Definition
HTTP (Hypertext Transport Protocol), Hypertext Transfer Protocol.
A data transfer protocol that specifies the communication rules between browsers and web servers and transmits World Wide web documents over the Internet.
1.2 protocol principles
1.3 request format
* The first part is request line. The method of the package request, the name of the requested resource, and the protocol in use.
* The second part is request headers. It contains some information about the browser.
* The third part is the body. There is an empty line between request headers and body.
* METHOD indicates the request METHOD, such as "POST" and "GET ". Path-to-resource indicates the requested resource. HTTP/version-number indicates the version number of the HTTP protocol.
1.4 Response format
* The first part is response line. It contains the version information and response status of the HTTP protocol.
* The second part is the response header. It includes some basic information about the server.
* The third part is the body. There is also an empty line between the response header and body.
1.5 receive and send a message instance (Fiddle)
Both are vertex headers, so both are the message headers and the body does not.
Ii. HTML2.1 Definition
HTML (Hypertext Markup Language) is a Markup Language used to describe Web documents.
Is the language used to compile network files.
2.2 hyperlink
2.3 Static Page
A webpage is only organized by HTML code.
2.4 dynamic page
HTML + ASP
HTML + PHP
HTML + JSP
2.5 form elements
<Form> </form>
2.5.1 text box
* <Input type = "text" name = "text">
2.5.2 single region
* <Input type = "radio" value = "value 1" name = "dxk">
* <Input type = "radio" value = "value 2" name = "dxk">
2.5.3 check box
* <Input type = "checkbox" value = "value 1" name = "dxk">
* <Input type = "checkbox" value = "value 2" name = "dxk">
2.5.4 submit button
* <Input type = "submit" value = "submit">
2.6 form Element attributes
* Type attribute: indicates the type of the element. The values include text (text box), checkbox (single button), and button.
* Name attribute: indicates the name of the element and can only have unique values.
* Value attribute: sets the default value of the element.
2.7 target address for form submission
2.8 data submission method
* There is also an attribute method in the form. It indicates the data submission method in the form. It has two optional values: POST and GET.
* POST: package data and transfer it in implicit mode.
* GET: attaches data to a URL and transmits data through the URL.
Iii. CSS
CSS: Page beautification Technology
3.1 css attributes
3.2 mouse style attributes
Controls the cursor attribute in CSS.
3.3 absolute CSS positioning
3.4 CSS changes the color of a table