Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:表头、表格主体处未显示高亮,应该是结束处未写`
1 . <a> 标签用于链接跳转到指定的站外页面
<a href="https://www.php.cn/">php中文网</a>
2 . <a>标签通过target属性默认在当前窗口中打开
target=_self
3 . <a>标签通过target属性跳转相同的iframe标签中name属性的名字标签
<a href="https://www.tmall.com/" target="_self">天猫</a>
<iframe frameborder="5" name="tamll"></iframe>
target="tmall
name="tamll"
4 . <a>标签通过锚点/书签来实现站内跳转
<a href="https://www.tmall.com/" target="tmall">天猫</a>
<iframe frameborder="5" name="tamll"></iframe>
href="#Hello"
id="Hello"
5 . <a>标签快速回到顶部
<a href="#Hello">我要要找到你</a>
<h2 id="Hello" style="margin-top: 1000px">你发现我了吗?</h2>
<a href="#">回到顶部</a>
<a href="https://www.taobao.com"><img src="cj.png" alt="插件" /></a>
<ul>
<li>笔记本</li>
<li>收音机</li>
<li>电脑</li>
</ul>
ul.menu>li.item*5>a{item$}
<ul class="menu">
<li class="item"><a href="">item1</a></li>
<li class="item"><a href="">item2</a></li>
<li class="item"><a href="">item3</a></li>
<li class="item"><a href="">item4</a></li>
<li class="item"><a href="">item5</a></li>
</ul>
nav>a{item$}*5
<nav>
<a href="">item1</a>
<a href="">item2</a>
<a href="">item3</a>
<a href="">item4</a>
<a href="">item5</a>
</nav>
<caption></caption>
<tr></tr>
<td></td>
<tfoot></tfoot>
colspan
属性rowspan
属性
<table width="300" border="2">
<caption>
表格标题
</caption>
<thead>
<tr bgcolor="red">
<td>item1</td>
<td>item2</td>
<td>item3</td>
<td>item4</td>
<td>item5</td>
</tr>
</thead>
<tbody>
<tr>
<td bgcolor="blue" rowspan="2">item1</td>
<td>item2</td>
<td>item3</td>
<td>item4</td>
<td>item5</td>
</tr>
<tr>
<td>item1</td>
<td bgcolor="green" colspan="3">item3</td>
</tr>
<tr>
<td>item1</td>
<td>item2</td>
<td>item3</td>
<td>item4</td>
<td>item5</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>item1</td>
<td>item2</td>
<td>item3</td>
<td>item4</td>
<td>item5</td>
</tr>
</tfoot>
</table>
<h2><a href="https://www.taobao.com" target="taobao">淘宝</a></h2>
<iframe
srcdoc="<em>点击上面的链接打开</em>"
frameborder="1"
width="300px"
height="500px"
name="taobao"
></iframe>
<div class="heder">
<h1>网站管理后台</h1>
<div>
<span>admin</span>
<a href="">退出</a>
</div>
</div>
<ul class="nav">
<li><a href="demo1.html" target="content">菜单1</a></li>
<li><a href="demo2.html" target="content">菜单2</a></li>
<li><a href="demo3.html" target="content">菜单3</a></li>
</ul>
<iframe
srcdoc="<p>请点击左侧菜单栏打开</p>"
frameborder="0"
name="content"
></iframe>