Html-链接基本记录
2016-07-26 01:03
399 查看
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="author" content="Hege Refsnes"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>链接</title> </head> <h1>html链接</h1> <body> <a href="http://www.baidu.com"v target="_blank">百度</a> <br/> <a id="tips">有用的提示</a> <br> <a href="#tips">访问有用的提示部分</a> <br/> <img src="1.jpg" width="200" height="200"> <br/> <br/> <p>创建图片链接 <a href="http:www.baidu.com"> <img src="1.jpg" alt=" 百度" width="32" height="32"></a> </p> <p>无边框图片链接 <a href="http:www.baidu.com"> <img border="0" src="1.jpg" alt="百度" width="32" height="32"> </a> </p> <!--跳转到本页面指定处--> <p> <a href="#C2">查看2</a> </p> <h2>1</h2> <p>swxctxone</p> <h2>2</h2> <p><a id="C2">swxctx</a></p> <!--跳出框架--> <p>跳出这里</p> <a href="1.jpg" target="_top">点击跳出</a> <br/> <!--邮件链接--> <p> 这是一个电子邮件链接: <a href="mailto:someone@example.com?Subject=Hello%20again" target="_top"> 发送邮件</a> </p> <p> 这是另一个电子邮件链接: <a href="mailto:someone@example.com?cc=someoneelse@example.com&bcc=andsomeoneelse@example.com&subject=Summer%20Party&body=You%20are%20invited%20to%20a%20big%20summer%20party!" target="_top">发送邮件!</a> </p> </body> </html>