HTML标签学习

标签属性备注
h1-h6align=" center/left/righ"标题
palign=" center/left/righ"段落
br换行
hrsize=“15px” width=“15px/50%” color=“pink”分割线
pre原样引入
strong/b加粗
em/i倾斜
u下划线
del/s删除线
sup上标
sub下标
div
span
imgsrc=“url” alt=""(图片处所时显示文本) title=""(鼠标悬浮显示文本) width=“200px” height=“200px”图片
ahref=“链接/javascript:fun()(调用js函数)/01.zip(下载zip)/mailto:x@163.com(发送邮件)/#(回顶部)” targer="_sef(默认)/_blank"链接
a标签定义锚点name=“锚点名”锚点
非a标签定义锚点id=“锚点”
a标签返回锚点href="#锚点"
tableborder="" width="" height="" align="" bgcolor="" cellpaffing="" cellspacing=""
tralign valign bgcolor
tdwidth height align valign bgcolor colspan rowspan
caption表标题
th可替代td并加粗
thead表头
tbody表身
tfoot表尾
oltype=“1/a/A/Ⅰ/i” start=“开始编号”有序列表
li列表的行
ultype=“disc(默认,实心圆)/circle(空心圆)/square(实心方块)/none(无)”无序列表
dl名词解释
dt名词名称
dd名词解释的内容
header网页或某部分的头
section网页或某部分的主体
footer网页或某部分的尾
aside侧边栏
nav导航栏
article文字相关内容
formaction method=“get/post/delete/put” enctype=“text/plain(只提交普通字符)或者multipart/form-data(允许提交文件)或者application/x-www-form-urlencoded”(允许提交任意字符)提交表单
inputtype=“text/password” name="" maxlength="" readonly disabled placeholder=""文本框
inputtype=“submit/reset/button” value=""按钮
inputtype=“radio/checkbox” name=“x/x[]” value="" checked单选多选
inputtype=“hidden” name="" value=""隐藏域
inputtype=“file” multiple name=“x/x[]”上传文件
textareaname="" readonly col="" row=""文本域
selectname=“x/x[]” size="" multiple下拉选
optionselected下拉选项
lablefor=“某一个标签的id”关联
fieldset为控件分组
legend分组的标题
iframesrc="" frameborder=“默认1” width="" height=""浮动框
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值