html快捷键

⼀.快捷键

1、隐藏:ctrl+shift+?

2、保存:ctrl+s

3、复制:ctrl+c

4、粘贴:ctrl+v

5、撤销:ctrl+z

⼆.简单符号

1、标签,成对存在:< >

2、结束标签:</ >

3、⼤标题:<title> </title>

4、⼩标题(分为 h1-h6,标题⼤⼩不同):<h1> </h1>

5、段落:<p> </p>

6、换⾏:<br>

7、下标:<sub> </sub>

8、上标:<sup> </sup>

9、加粗⽂本:<b> </b><br><br>

10、斜体⽂本:<i> </i><br><br>

11、电脑⾃动输出:<code> </code><br><br>

三.代码

1、覆盖跳转到百度:<a href="http://www.baidu.com">跳转到百度</a>

2、打开新界⾯、跳转到百度:<a href="http://www.baidu.com target="_blank">跳转到百度</a>

3、⽂字居中显⽰:<h1 style="text-align: center;">⽂字居中显⽰</h1>

4、插⼊图⽚并设置宽、⾼:<img src="img/logo.png" width="258" height="39" />

5、⽂字替代(加载不出图⽚的时候):<img border="0" src="img/pulpit.jpg" alt="Pulpit rock" width="304" height="228">

6、带表头的边距为1的表格:

<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>

7、⽆序列表

<ul>

<li>Coffee</li>

<li>Tea</li>

<li>Milk</li>

</ul>

8、通过⼗六进制设置背景颜⾊

<p style="background-color:#FFFF00">

通过⼗六进制设置背景颜⾊

</p>

9、通过 rbg 值设置背景颜⾊

<p style="background-color:rgb(255,255,0)">通过 rbg 值设置背景颜⾊

</p>

10、通过颜⾊名设置背景颜⾊

<p style="background-color:yellow">


⼀.快捷键

1、隐藏:ctrl+shift+?

2、保存:ctrl+s

3、复制:ctrl+c

4、粘贴:ctrl+v

5、撤销:ctrl+z

⼆.简单符号

1、标签,成对存在:< >

2、结束标签:</ >

第 1 页
3、⼤标题:<title> </title>

4、⼩标题(分为 h1-h6,标题⼤⼩不同):<h1> </h1>

5、段落:<p> </p>

6、换⾏:<br>

7、下标:<sub> </sub>

8、上标:<sup> </sup>

9、加粗⽂本:<b> </b><br><br>

10、斜体⽂本:<i> </i><br><br>

11、电脑⾃动输出:<code> </code><br><

 

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值