听着音乐
学习一下常用的标签
border="0" width="330" height="86" src="//music.163.com/outchain/player?type=2&id=21224490&auto=0&height=66">
作用 | 标签 | 属性 |
---|
标题大小 | <h1>~<h6> | none |
段落 | <p> | none |
换行 | <br /> | none |
水平线 | <hr> | none |
加粗斜线 | <b>、<i> | none |
删除下划线 | <s>、<u> | none |
图片 | <img src="url" alt=""> | 'src''alt''title''width''height' |
超链接 | <a href="url">text</a> | 'target=_self _blank' |
锚点 | <p id="mao">锚点</p> | <a href="#mao"></a> 点击a就到锚点 |
无序列表 | <ul><li></li></ul> | |
有序列表 | <ol><li></li></ol> | |
自定义列表 | <dl><dd></dd></dl> | |
表格 | <table><th><tr><td> | 'border''colspan''rowspan' |
lable | <lable for="id">请输入</lable> | 'for' 用于绑定input中id,获取焦点友好提示 |
输入 | <input type=""> | type="text password button checkbox radio submit" name="控制互斥" value="显示值" |
文本域 | <textarea ></textare> | name="" id="" cols="" rows="" |
下拉选 | <select name="" id=""><option value=""></option></select> | |
表单 | <form action=""><input>...<></form> | action="" 提交地址 |