1. src and href
src, the abbreviation of source, means "source", and source code means "source code".
href, the abbreviation of Hypertext Reference, means hypertext reference.
2. Classification
1. src
① Insert the picture into the web page , specify the location of the picture.
② Frame page
③ JS file introduction
2. href
① Internal link: name
② outer link: & lt; a href = "url" & gt; name & lt;/a & gt;
## ③ Anchor notes: & lt; a href = "#object-name" & gt;/a & gt;/a & gt ;name ④ Link description text: Link description a & gt; // "/" is the root # ⑤ Special effect link (script support): JavaScript script: & lt; a href = "javascript: Alert (‘ Night, rest early! ')">Click me! ⑥ External CSS reference: ⑦ External XSL Modify XML document: ⑧XML data island:The above is the detailed content of In-depth understanding of src and href in HTML. For more information, please follow other related articles on the PHP Chinese website!