六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 155|回复: 0

22个HTML5的初级技巧

[复制链接]

升级  97.67%

153

主题

153

主题

153

主题

举人

Rank: 3Rank: 3

积分
493
 楼主| 发表于 2013-2-7 22:49:06 | 显示全部楼层 |阅读模式
<span style="">Web技术的发展速度太快了,如果你不与时俱进,就会被淘汰。因此,为了应对即将到来的HTML5,本文总结了22个HTML5的初级技巧,希望能对你进一步学习好HTML5会有所帮助。
1. 新的Doctype声明
XHTML的声明太长了,我相信很少会有前端开发人员能手写出这个Doctype声明。
<div class="syntaxhighlighter  " style="font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; font-style: normal !important; font-weight: normal !important; vertical-align: baseline !important; margin-top: 2em !important; margin-right: 0px !important; margin-bottom: 1em !important; margin-left: 0px !important; text-align: left !important; float: none !important; height: auto !important; line-height: 24px; width: 558px !important; padding: 2px !important;"><div class="lines" style="font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; font-style: normal !important; font-weight: normal !important; vertical-align: baseline !important; text-align: left !important; float: none !important; height: auto !important; line-height: 24px; padding: 0px; margin: 0px !important;"><div class="line alt1" style="font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; font-style: normal !important; font-weight: normal !important; vertical-align: baseline !important; text-align: left !important; float: none !important; height: 24px; line-height: 24px; background-color: #e3eedc !important; padding: 0px; margin: 0px !important;">
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表