href是Hypertext Reference的简写,表示超文本引用,指向网络资源所在位置。
常见场景:
<a href="http://www.baidu.com"></a>
<link type="text/css" rel="stylesheet" href="common.css">
src是source的简写,目的是要把文件下载到html页面中去。
常见场景:
<img src="img/girl.jpg">
<iframe src="top.html">
<script src="show.js">