HTML hyperlink tags and table tags

HTML hyperlink tag

hyperlink tag a

Format: <a href="链接⽬标url地址">显示⽂字</a>
Attributes of a tag:
href:required, refers to the link jump address
target:Indicates how to open the link:
_blanknew window
_parentparent window
_selfwindow (default)
_toptop-level window
framenamewindow name
title:text prompt attribute (details)
anchor point link:
define an anchor: <a id="a1"></a>previously <a name="a1"></a>
used using anchor: <a href="#a1">skip to a1</a>

<!DOCTYPE html>
<html lang="en">
<head>
 <meta charset="UTF-8">
 <title>Document</title>
</head>
<body>
 <h1>HTML标签实例--超级链接标签</h1>

 <a href="http://www.baidu.com" title="百度链接" target="_blank">百度</a>

 本地链接:<a href="Demo.html">3.html</a>

 锚点:<a href="#myimg">围炉废话</a>
<br/>
 <hr/>
 <img src="./images/1.jpg" title="图⽚" width="700" />
 <img src="./images/2.jpg" alt="美⼥图⽚" width="700" />

 <a id="myimg"></a>
 <img src="./images/3.jpg" width="700" />
 <img src="./images/4.jpg" width="700" />
</body>
</html>

insert image description here

table tab

Labels in the table:

insert image description here

<!DOCTYPE html>
<html lang="en">
<head>
 <meta charset="UTF-8">
 <title>Document</title>
</head>
<body>
 <h3>HTML标签实例--表格标签</h3>

 <table border="1" width="700" cellspacing="0" cellpadding="4">
 <caption><h3>学⽣信息表</h3></caption>
 <tr>
 <th>学号</th>
 <th>姓名</th>
 <th>年龄</th>
 <th>班级</th>
 </tr>
 <tr>
 <td>1001</td>
 <td>张三</td>
 <td>22</td>
 <td>python04</td>
 </tr>
 <tr>
 <td>1002</td>
 <td>李四</td>
 <td>22</td>
 <td rowspan="2">python04</td>
 </tr>
 <tr>
 <td>1003</td>
 <td colspan="2">王五</td>
 <!--<td>22</td>-->
 <!--<td>python04</td>-->
 </tr>
 </table>
</body>
</html>

Rendering:
insert image description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324153582&siteId=291194637
Recommended