Sublime+HTML5的快速补全

本文介绍如何利用 Sublime Text 的快捷键快速创建 HTML5 页面结构及常用元素,提升前端开发效率。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

初始化:ctrl+shift+p -> 输入sshtml -> 输入! -> 按下Tab | ctrl+e   然后可以得到html5的整体结构

列表如下:

a    <a href=""></a>

a:link <a href="http://"></a>
a:mail   <a href="mailto:"></a>
abbr   <abbr title=""></abbr>
acronym  <acronym title=""></acronym>
base   <base href="">
basefont  <basefont>
br    <br>
bdo  <bdo dir=""></bdo>
bdo:r  <bdo dir="rtl"></bdo>
bdo:l  <bdo dir="ltr"></bdo>
link   <link rel="stylesheet" href="">
link:css  <link rel="stylesheet" href="style.css" />
link:print <link rel="stylesheet" href="print.css" media="print">
link:favicon <link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
link:touch <link rel="apple-touch-icon" href="favicon.png">
link:rss  <link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml">
link:atom   <link rel="alternate" type="application/atom+xml" title="Atom" href="atom.xml">
meta:utf    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
meta:win   <meta http-equiv="Content-Type" content="text/html;charset=windows-1251">
meta:vp    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
meta:compat  <meta http-equiv="X-UA-Compatible" content="IE=7">
style    <style></style>
script   <script></script>
script:src  <script src=""></script>


img   <img src="" alt="">T
iframe <iframe src="" frameborder="0"></iframe>
embed  <embed src="" type="">
object <object data="" type=""></object>
param  <param name="" value="">
map    <map name=""></map>


area   <area shape="" coords="" href="" alt="">
area:d   <area shape="default" href="" alt="">
area:c   <area shape="circle" coords="" href="" alt="">
area:r   <area shape="rect" coords="" href="" alt="">
area:p   <area shape="poly" coords="" href="" alt="">


form  <form action=""></form>
form:get  <form action="" method="get"></form>
form:post  <form action="" method="post"></form>
label  <label for=""></label>
input  <input type="text">
inp  <input type="text" name="" id="">
 
input:hidden
别名:input[type=hidden name]
<input type="hidden" name="">
 
input:h
别名:input:hidden
<input type="hidden" name="">
 
input:text, input:t
别名:inp
<input type="text" name="" id="">
 
input:search
别名:inp[type=search]
<input type="search" name="" id="">
 
input:email
别名:inp[type=email]
<input type="email" name="" id="">
 
input:url
别名:inp[type=url]
<input type="url" name="" id="">
 
input:password
别名:inp[type=password]
<input type="password" name="" id="">
 
input:p
别名:input:password
<input type="password" name="" id="">
 
input:datetime
别名:inp[type=datetime]
<input type="datetime" name="" id="">
 
input:date
别名:inp[type=date]
<input type="date" name="" id="">
 
input:datetime-local
别名:inp[type=datetime-local]
<input type="datetime-local" name="" id="">
 
input:month
别名:inp[type=month]
<input type="month" name="" id="">
 
input:checkbox/input:c
别名:inp[type=checkbox]
<input type="checkbox" name="" id="">
input:radio
别名:inp[type=radio]
<input type="radio" name="" id="" />
input:r
别名:input:radio
<input type="radio" name="" id="">
 
input:range
别名:inp[type=range]
<input type="range" name="" id="">
 
input:submit/input:s
<input type="submit" value="">
input:image/input:i
<input type="image" src="" alt="">
 
input:button/input:b
<input type="button" value="">
 
isindex
<isindex>
 
input:reset
别名:input:button[type=reset]
<input type="reset" value="">
 
select
<select name="" id=""></select>
Sublime HTML 快捷键
option
<option value=""></option>
 
textarea
<textarea name="" id="" cols="30" rows="10"></textarea>
 
menu:context
别名:menu[type=context]>
<menu type="context"></menu>
 
menu:c
别名:menu:context
<menu type="context"></menu>
 
menu:toolbar
别名:menu[type=toolbar]>
<menu type="toolbar"></menu>
 
menu:t
别名:menu:toolbar
<menu type="toolbar"></menu>
 
video
<video src=""></video>
 
html:xml
<html xmlns="http://www.w3.org/1999/xhtml"></html>
bq
别名:blockquote
<blockquote></blockquote>
 
acr
别名:acronym
<acronym title=""></acronym>
ifr
别名:iframe
<iframe src="" frameborder="0"></iframe>
 
emb
别名:embed
<embed src="" type="">
 
obj
别名:object
<object data="" type=""></object>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值