1.单独使用
<a href="http://baidu.com">Baidu</a>
2.与列表结合
<body>
<p>Movie Reviews:
<ul>
<li><a href="http://www.empireonline.com">Empire</a></li>
<li><a href="http://www.metacritic.com">Metacritic</a></li>
<li><a href="http://www.rottentomatoes.com">Rotten Tomatoes</a></li>
<li><a href="http://www.variety.com">Variety</a></li>
</ul>
</p>
</body>
3.email链接
<a href=:mailto:[email protected]">Email Jon</a>
4.新窗口打开链接。使用target
<a href="http://www.imdb.com" target="_blank">Internet Movie Database</a>
5.使用id配合href实现网页内定位
<body>
<h1 id="top">Film-Making Terms</h1>
<a href="#arc_shot">Arc Shot</a><br />
<a href="#interlude">Interlude</a><br />
<a href="#prologue">Prologue</a><br /><br />
<h2 id="arc_shot">Arc Shot</h2>
<p>A shot in which the subject is photographed by an encircling or moving camera</p>
<h2 id="interlude">Interlude</h2>
<p>A brief, intervening film scene or sequence, not specifically tied to the plot, that appears within a film</p>
<h2 id="prologue">Prologue</h2>
<p>A speech, preface, introduction, or brief scene preceding the the main action or plot of a film; contrast to epilogue</p>
<p><a href="#top">Top</a></p>
</body>
标签:plot,Movie,scene,Interlude,html,链接,film
From: https://www.cnblogs.com/zhongta/p/18431201