1. 浏览器内核
分为渲染引擎和JS引擎
渲染引擎:它负责取得网页的内容(HTML、XML、图像等等)、整理讯息(例如加入CSS 等),以及计算网页的显示方式,然后会输出至显示器或打印机
JS引擎:JS引擎则是解析Javascript语言,执行javascript语言来实现网页的动态效果
- IE: Trident
- Firefox: Gecko
- Chrome: Webkit 到 Blink
- Safari: Webkit
- Opera: Presto 到 Webkit 到 Blink
2. 标签
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| <b>粗体</b> <strong></strong> <i>斜体</i> <em></em> <s>删除</s> <del></del> <u>下划</u> <ins></ins> <img src="图片路径" alt="出错显示信息"> <a href="跳转链接" target="_blank">_blank在新窗口中打开</a>
<a href="#one"></a> <p id="one">段落</p> <ul> <li></li> </ul> <ol> <li></li> </ol> <dl> <dt></dt> </dl>
|
html常用特殊符号(html实体)
3. 表格
合并单元格的步骤
- 先判断是跨行(rowspan)还是跨列(colspan)
- 把属性名和合并的行数写在第一个要合并的单元格上
- 把多余的单元格注释掉
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| <table align="center" border="1" cellspacing="0" cellpadding="10"> <caption>年中工资报表</caption> <thead> <tr> <th>标题1</th> <th>标题2</th> </tr> </thead> <tbody> <tr> <td rowspan="2" colspan="2">abc</td> </tr> <tr> <td>abc</td> </tr> </tbody> </table>
|
5. 表单
action提交的地址、method提交的方式、name表单名字
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| <form action="https://www.baidu.com" method="GET" name="form1"> <div> <label for="user">姓名</label> <input type="text" id="user" value="默认值" placeholder="提示信息"> </div> <div> <label for="pwd">密码</label> <input type="password" id="pwd" size="30"> </div> <input type="radio" name="sex" checked><span>男</span> <input type="checkbox" checked><span>1</span> <input type="checkbox"><span>2</span> </div> <select name="" id=""> <option value="">石家庄</option> <option value="" selected>迁安</option> </select> <textarea name="" id="" cols="30" rows="7"></textarea> <input type="reset" value="重新设置"> <input type="button" value="普通按钮"> <input type="submit" value="提交按钮"> </form>
|
6. HTML5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| <header>头部标签</header>
<nav> <ul> <li><a href="#">导航标签链接1</a></li> <li><a href="#">导航标签链接2</a></li> </ul> </nav> <section>小节标签</section>
<aside> <ul> <li>侧边栏</li> </ul> </aside> <article>文章标签</article> <footer>尾部标签</footer>
<progress max="600" value="100"></progress>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| <form action="#" method="GET" name="form-1"> <input type="text" list="l1"> <datalist id="l1"> <option value="op3"></option> <option value="op4"></option> <option value="op5"></option> </datalist> <button>h5普通按钮</button> <section>小节标签,类div</section> <label for="user">姓名</label> <input type="text" id="user" name="user" placeholder="占位符" required autofocus autocomplete="off"> <label for="pwd">密码</label> <input type="password" id="pwd" name="pwd" placeholder="占位符" maxlength="6" minlength="3"> <label for="">邮箱</label> <input type="email" autocomplete="off"> <label for="">地址</label> <input type="url" name="" id=""> <input type="color"> <label for="">搜索框</label> <input type="search" placeholder="输入搜索内容"> <label for="">时间</label> <input type="time" name="" id=""> <label for="">日期</label> <input type="date" name="" id=""> <label for="">月份</label> <input type="month" name="" id=""> <label for="">周</label> <input type="week" name="" id=""> </form>
|
1 2 3 4 5 6
| <audio src="音频地址" controls loop muted></audio> <audio controls> <source src=""> </audio> <video src="" controls loop muted width="200" height="300"></video>
|