http原理
简介
HTTP协议是Hyper Text Transfer Protocol(超文本传输协议)的缩写,是用于从万维网(WWW:World Wide Web )服务器传输超文本到本地浏览器的传送协议。。
HTTP是一个基于TCP/IP通信协议来传递数据(HTML 文件, 图片文件, 查询结果等)。
工作原理
HTTP协议工作于客户端-服务端架构上。浏览器作为HTTP客户端通过URL向HTTP服务端即WEB服务器发送所有请求。
web服务器有:Apache服务器,IIS服务器等
web服务器根据接收到的请求后,向客户端发送响应信息。
HTTP默认端口号是80,也可以更改
html语法:










HTML和PHP
html是用来做网页的表现层的,也就是你所看到的如字体,链接,图片等
PHP是用来处理逻辑层的,也就是你要网页提供什么功能,完成什么动作。
PHP代码是嵌入html中的
他们之间的关系大概可以这样概括
HTML展示内容
PHP动态修改输出HTML展示内容
CSS美化页面
JS让页面动起来。提高浏览体验。