<HTML学习>a标签、img标签、table标签(3)

a标签

<a href="http://www.baidu.com" target="_self">百度</a>

1.herf:链接地址
2.target:文档显示何处
_blank:创建新的页面
_self:当前页面跳转

锚链接

<a name="top">顶部</a>
<a herf="#top">点击跳转顶部</a>

点击跳转到top

img标签

<img src="boat.gif" alt="Big Boat" width="304" height="228">

scr中填写图片地址
alt 属性用来为图像定义一串预备的可替换的文本,浏览器无法显示图片时会显示Big Boat
width:图像宽度
height:图像高度

table标签

<table border="1">
    <tr>
        <th>Header 1</th>
        <th>Header 2</th>
    </tr>
    <tr>
        <td>row 1, cell 1</td>
        <td>row 1, cell 2</td>
    </tr>
    <tr>
        <td>row 2, cell 1</td>
        <td>row 2, cell 2</td>
    </tr>
</table>
Header 1Header 2
row 1, cell 1row 1, cell 2
row 2, cell 1row 2, cell 2

border:边框宽度

列表

无序列表

<ul>
<li>Coffee</li>
<li>Milk</li>
</ul>

有序列表

<ol>
<li>Coffee</li>
<li>Milk</li>
</ol>

框架

<frameset rows="20%,*">
	<frame src="top.html" />
	<frameset cols="30%,*">
		<frame src="menu.html" />
		<frame src="main.html" name="c" />
	</frameset>
</frameset>

frameset链接
rows行方向占比
cols列方向占比

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值