html常用标记

html列表

html 无序列表 ul-li

案例:

<html>
<head>
</head>
<body>
<ul type="square">
<li>传奇</li>
<li>反恐</li>
<li>跳舞团</li>
</ul>
</body>
</html>

html有序列表 ol-li

<ol type="i">
<li>传奇</li>
<li>反恐</li>
<li>跳舞团</li>
<li>反恐</li>
<li>跳舞团</li>
</ol>

type可以决定有序列表前面的数字类型。

<ol type="1" start="6">
<li>传奇</li>
<li>反恐</li>
<li>跳舞团</li>
<li>反恐</li>
<li>跳舞团</li>
</ol>

html的框架标记

html的框架标记(元素) frameset  /frame

案例:

使用<framset></frameset>时,不能有body。

如:

<html>
<head>
<title>all.html</title>
</head>

<frameset cols="50%, *">
<frame src="aa.html"/>
<frame src="bb.html"/>
</frameset>

</html>

并不希望用户对页面进行拖拽。

这样设置即可:

<frame src="aa.html" noresize/>

all.html:

<html>
<head>
<title>all.html</title>
</head>

<frameset cols="50%, *" frameborder="0">
<frame src="aa.html" noresize/>
<frame src="bb.html"/>
</frameset>

</html>

aa.html:

<html>
<head>
<title></title>
</head>
<body bgcolor="yellow">
周杰伦的歌
</body>
</html>

bb.html:

<html>
<head>
<title></title>
</head>
<body>
歌词......
</body>
</html>

all.html中不能有body标签。

 

转载于:https://www.cnblogs.com/liaoxiaolao/p/9719478.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值