1. Why is there a host in an HTTP request sent to a URL?
Accept: text/html, application/XHTML + XML, application/XML; q = 0.9, */*; q = 0.8accept-charset: GBK, UTF-8; q = 0.7 ,*; Q = 0.3accept-encoding: gzip, deflate, sdchaccept-language: ZH-CN, ZH; q = 0.8 connection: Keep-alivecookie: * *********************** HOST: www.google.com. hkuser-AGENT: Mozilla/5.0 (Windows NT 6.1; wow64) applewebkit/537.22 (khtml, like gecko) Chrome/25.0.1364.152 Safari/537.22x-chrome-variations: outputs =
Because some servers have multiple websites, the request URL will find the corresponding IP address through some DNS. This IP address is the Server IP address, but this server may have multiple websites, the request must know the specific destination.
2. How to debug different browsers
One easier way is to use Yahoo UI, http://developer.yahoo.com/yui/2/
3. why CSS? advantages and disadvantages
Advantage: Easy classification and layout, savingCode.
Disadvantage: loading speed is slow for the first time. A website needs to be displayed only after the complete code is written.
4. DNS
A: IP Address
Cname: maps a URL to another URL to prevent the mapped IP address from being found after it changes.
5. Why is Google's interface so concise and JS Code Format messy?
Space is money