Blogger Information
Blog 34
fans 0
comment 1
visits 23063
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
PHP与HTML的关系-2018年8月14日22时45分
感恩的心的博客
Original
711 people have browsed it

第一个问题:学习PHP为什么必须要掌握HTML

全球知名互联网公司都用PHP,如:新浪、百度、腾讯、阿里等均是PHP技术的经典应用。目前,全球5000万互联网网站中,有60%以上使用着PHP技术,80%国内互联网网站使用PHP开发,394家中国500强网站采用了PHP技术。

目前在国内,PHP人才供求比达到1:40,PHP高端人才尤其稀缺,相关人才高薪就业已成常态。

发展前景大

在无孔不入的互联网应用环境下,Web2.0、云计算、物联网等新概念将不断催生出新的产业和服务。而支撑这些新型产业和服务的技术体系非PHP莫属。而随着3G和移动互联网技术的兴起,越来越多的WEB应用也选择了PHP作为主流的技术方案。

行业竞争小

PHP发展迅速,大学里基本未开设PHP课程,导致掌握PHP的程序员非常少。从求职的角度来看,PHP招聘信息和JAVA或ASP比较,PHP招聘量达到JAVA和ASP的1/3,但是PHP应聘人员只是JAVA和ASP的1/40。

第二个问题:为什么选择php
php,java,python,asp....
php的三快:快,上手快,开发快,迭代快

第三个:为什么用框架
php可以进行原生开发,
国内:ThinkPHP 5.1.20
国外:laravel 5.6
框架就是产出,就是开发规范

实例

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>第2章 PHP与HTML的关系</title>
	<!-- 对于多个具有关联性的内容,应该使用列表元素来包装 -->
<style type="text/css">
	table{
		width: 700px;
		text-align: center;
		margin: 20px auto;
		border-collapse: collapse;
	}

	table caption{
		font-size: 3 rem;
		font-weight: bolder;
		color:#666;
		margin-bottom: 20px;
	}

	table,th,td{
		border: 1px solid #666;
	}

	table tr:first-child{
		background-color: lightgreen;
	}

	table tr:hover{
		background-color: #efefef;
		color:coral;
	}

	table tr td img{
		padding:5px;
		border-radius: 10px;
	}
/*将a标签模拟成按钮*/
	table tr td a{
		/*去掉下划线*/
		text-decoration-line:none;

		width:140px;
		height: 40px;

		padding:5px;
		border:1px solid black;
		background-color: white;

		color:black;
		border-radius: 8px;

	}

	table tr td a:hover{
		background-color: black;
		color:white;
	}

</style>
</head>
<body>
	<h2>认真上课,老师很高兴</h2>

	<table>
	<caption>购物清单</caption>
	<tr>
	    <th>编号</th>
	    <th>名称</th>
	    <th>数量</th>
	    <th>brand</th>
	    <th>缩略图</th>
	    <th>操作</th>
	</tr>

	<tr>
	    <td>1</td>
	    <td>橘子</td>
	    <td>1斤</td>
	    <td>无</td>
	    <td><img src="https://jsqstest.oss-cn-shenzhen.aliyuncs.com/phpStudy/images/orange.jpg" width="100"></td>
	    <td><a href="https://www.bfnn.org.cn">详细信息</a></td>
	</tr>
	<tr>
	    <td>2</td>
	    <td>苹果</td>
	    <td>1斤</td>
	    <td>金苹果</td>
	    <td><img src="https://jsqstest.oss-cn-shenzhen.aliyuncs.com/phpStudy/images/apple.jpg" width="100"></td>
	    <td><a href="https://www.bfnn.org.cn">详细信息</a></td>
	</tr>
	<tr>
	    <td>3</td>
	    <td>电风扇</td>
	    <td>1台</td>
	    <td>Gree</td>
	    <td><img src="https://jsqstest.oss-cn-shenzhen.aliyuncs.com/phpStudy/images/fan.jpg" width="100"></td>
	    <td><a href="https://www.bfnn.org.cn">详细信息</a></td>
	</tr>

</table>
</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例

课程总结:

------------------------------------------------
1、html文档什么都不写行不行,行,但不推荐;
2、双标签,没有正确关闭;
3、元素是页面中要展现的内容,<img><br>,元素是用标签来表示的
4、重点:标签
5、属性就是用来描述标签的,标签用来描述元素,属性用来描述标签
标签的四个公共属性:style,内联样式
id,唯一元素
class,同类元素
title,提示信息

6、双标签和单标签区别
《css权威指南》,
非可替换元素:就是
直接写在了html代码中,主要是文本,然后由浏览器直接渲染
可替换元素:来自源码的外部,通过标签的属性引入:图片、文件、富媒体、视频,(img,link,script典型),可以替换的元素

script比较特殊

css标签可以写在TABLE标签下面

 

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!